tests: ensure notin while setting Audio/Gui VM
This commit is contained in:
parent
90584c487a
commit
532d9a3a98
@ -614,9 +614,12 @@ class TC_90_Qubes(qubes.tests.QubesTestCase):
|
|||||||
# Change GuiVM
|
# Change GuiVM
|
||||||
appvm.guivm = vncvm
|
appvm.guivm = vncvm
|
||||||
self.assertIn('guivm-sys-vnc', appvm.tags)
|
self.assertIn('guivm-sys-vnc', appvm.tags)
|
||||||
|
self.assertNotIn('guivm-sys-vnc', appvm.tags)
|
||||||
|
|
||||||
# Empty GuiVM
|
# Empty GuiVM
|
||||||
del appvm.guivm
|
del appvm.guivm
|
||||||
|
self.assertNotIn('guivm-sys-vnc', appvm.tags)
|
||||||
|
self.assertNotIn('guivm-sys-gui', appvm.tags)
|
||||||
self.assertNotIn('guivm-', appvm.tags)
|
self.assertNotIn('guivm-', appvm.tags)
|
||||||
|
|
||||||
def test_114_default_audiovm(self):
|
def test_114_default_audiovm(self):
|
||||||
@ -667,9 +670,12 @@ class TC_90_Qubes(qubes.tests.QubesTestCase):
|
|||||||
# Change AudioVM
|
# Change AudioVM
|
||||||
appvm.audiovm = guivm
|
appvm.audiovm = guivm
|
||||||
self.assertIn('audiovm-sys-gui', appvm.tags)
|
self.assertIn('audiovm-sys-gui', appvm.tags)
|
||||||
|
self.assertNotIn('audiovm-sys-audio', appvm.tags)
|
||||||
|
|
||||||
# Empty AudioVM
|
# Empty AudioVM
|
||||||
del appvm.audiovm
|
del appvm.audiovm
|
||||||
|
self.assertNotIn('audiovm-sys-gui', appvm.tags)
|
||||||
|
self.assertNotIn('audiovm-sys-audio', appvm.tags)
|
||||||
self.assertNotIn('audiovm-', appvm.tags)
|
self.assertNotIn('audiovm-', appvm.tags)
|
||||||
|
|
||||||
def test_200_remove_template(self):
|
def test_200_remove_template(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user