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

This commit is contained in:
Marek Marczykowski-Górecki 2016-04-03 03:45:47 +02:00 committed by Wojtek Porczyk
parent de86a3c1a4
commit 12df07edd0

View File

@ -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)