tests: invalid property should not be saved to qubes.xml
This commit is contained in:
parent
de86a3c1a4
commit
12df07edd0
@ -119,3 +119,9 @@ class TC_10_BaseVM(qubes.tests.QubesTestCase):
|
|||||||
|
|
||||||
with self.assertRaises(TypeError):
|
with self.assertRaises(TypeError):
|
||||||
TestVM(None, node)
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user