Skip to content

Commit

Permalink
tests: remove obsolete tests, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Jun 6, 2017
1 parent 04fd2ff commit 313d742
Showing 1 changed file with 2 additions and 35 deletions.
37 changes: 2 additions & 35 deletions qubes/tests/vm/qubesvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import qubes.vm.qubesvm

import qubes.tests
import qubes.tests.vm

class TestApp(object):
labels = {1: qubes.Label(1, '0xcc0000', 'red')}
Expand Down Expand Up @@ -210,7 +211,7 @@ def _test_generic_bool_property(self, vm, prop_name, default=False):
self.assertPropertyInvalidValue(vm, prop_name, '')


class TC_90_QubesVM(QubesVMTestsMixin,qubes.tests.QubesTestCase):
class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
def test_000_init(self):
self.get_vm()

Expand Down Expand Up @@ -429,35 +430,6 @@ def test_281_autostart_systemd(self):
'qubes-vm@{}.service'.format(vm.name)),
"systemd service not disabled by resetting autostart")

@unittest.skip('TODO')
def test_300_qrexec_installed(self):
vm = self.get_vm()
self._test_generic_bool_property(vm, 'qrexec_installed', True)

@unittest.skip('TODO')
def test_301_qrexec_installed_default(self):
vm = self.get_vm()
vm.hvm = False
self.assertPropertyDefaultValue(vm, 'qrexec_installed', True)
vm.hvm = True
self.assertPropertyDefaultValue(vm, 'qrexec_installed', False)
# TODO: check inheritance from a template - in appvm copy of this test

@unittest.skip('TODO')
def test_310_guiagent_installed(self):
vm = self.get_vm()
self._test_generic_bool_property(vm, 'guiagent_installed', True)
# TODO: check inheritance from a template - in appvm copy of this test

@unittest.skip('TODO')
def test_311_guiagent_installed_default(self):
vm = self.get_vm()
vm.hvm = False
self.assertPropertyDefaultValue(vm, 'guiagent_installed', True)
vm.hvm = True
self.assertPropertyDefaultValue(vm, 'guiagent_installed', False)
# TODO: check inheritance from a template - in appvm copy of this test

@unittest.skip('TODO')
def test_320_seamless_gui_mode(self):
vm = self.get_vm()
Expand Down Expand Up @@ -521,11 +493,6 @@ def test_360_drive(self):
# ('drive.img', '', False),
# ])

@unittest.skip('TODO')
def test_370_pci_strictreset(self):
vm = self.get_vm()
self._test_generic_bool_property(vm, 'pci_strictreset')

def test_400_backup_timestamp(self):
vm = self.get_vm()
timestamp = datetime.datetime(2016, 1, 1, 12, 14, 2)
Expand Down

0 comments on commit 313d742

Please sign in to comment.