From 532d9a3a988eecf59a281b121572b64fda4915d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Sun, 8 Mar 2020 22:59:46 +0100 Subject: [PATCH] tests: ensure notin while setting Audio/Gui VM --- qubes/tests/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qubes/tests/app.py b/qubes/tests/app.py index a9904d8d..fae342b8 100644 --- a/qubes/tests/app.py +++ b/qubes/tests/app.py @@ -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):