diff --git a/qubes/tests/vm/appvm.py b/qubes/tests/vm/appvm.py index f3bc0979..88634fa8 100644 --- a/qubes/tests/vm/appvm.py +++ b/qubes/tests/vm/appvm.py @@ -1,4 +1,4 @@ -# -*- encoding: utf8 -*- +# -*- encoding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # @@ -157,3 +157,25 @@ class TC_90_AppVM(qubes.tests.vm.qubesvm.QubesVMTestsMixin, self.assertEqual(vm.template_for_dispvms, False) with self.assertRaises(AttributeError): vm.dispvm_allowed + + def test_600_load_volume_config(self): + xml_template = ''' + + + 1 + testvm + + + + + + + ''' + xml = lxml.etree.XML(xml_template) + vm = qubes.vm.appvm.AppVM(self.app, xml) + self.assertEqual(vm.volume_config['root']['revisions_to_keep'], '3') + self.assertEqual(vm.volume_config['root']['rw'], True) + self.assertEqual(vm.volume_config['root']['size'], '1234') + self.assertEqual(vm.volume_config['root']['vid'], + 'qubes_dom0/vm-testvm-root')