tests: ensure notin while setting Audio/Gui VM

This commit is contained in:
Frédéric Pierret (fepitre) 2020-03-08 22:59:46 +01:00
parent 90584c487a
commit 532d9a3a98
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -614,9 +614,12 @@ class TC_90_Qubes(qubes.tests.QubesTestCase):
# Change GuiVM
appvm.guivm = vncvm
self.assertIn('guivm-sys-vnc', appvm.tags)
self.assertNotIn('guivm-sys-vnc', appvm.tags)
# Empty GuiVM
del appvm.guivm
self.assertNotIn('guivm-sys-vnc', appvm.tags)
self.assertNotIn('guivm-sys-gui', appvm.tags)
self.assertNotIn('guivm-', appvm.tags)
def test_114_default_audiovm(self):
@ -667,9 +670,12 @@ class TC_90_Qubes(qubes.tests.QubesTestCase):
# Change AudioVM
appvm.audiovm = guivm
self.assertIn('audiovm-sys-gui', appvm.tags)
self.assertNotIn('audiovm-sys-audio', appvm.tags)
# Empty AudioVM
del appvm.audiovm
self.assertNotIn('audiovm-sys-gui', appvm.tags)
self.assertNotIn('audiovm-sys-audio', appvm.tags)
self.assertNotIn('audiovm-', appvm.tags)
def test_200_remove_template(self):