Explorar o código

tests: invalid property should not be saved to qubes.xml

Marek Marczykowski-Górecki %!s(int64=8) %!d(string=hai) anos
pai
achega
12df07edd0
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      qubes/tests/vm/init.py

+ 6 - 0
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)