From 12df07edd01143fdf0192c851c0a26a37fb8db1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 3 Apr 2016 03:45:47 +0200 Subject: [PATCH] tests: invalid property should not be saved to qubes.xml --- qubes/tests/vm/init.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qubes/tests/vm/init.py b/qubes/tests/vm/init.py index 436279a4..0258159c 100644 --- a/qubes/tests/vm/init.py +++ b/qubes/tests/vm/init.py @@ -119,3 +119,9 @@ class TC_10_BaseVM(qubes.tests.QubesTestCase): with self.assertRaises(TypeError): TestVM(None, node) + + def test_002_save_nxproperty(self): + vm = TestVM(None, None, qid=1, name='testvm') + vm.nxproperty = 'value' + xml = vm.__xml__() + self.assertNotIn('nxproperty', xml)