Test that a DispVM’s template can be changed

Previously this raised a QubesValueError.
这个提交包含在:
Demi Marie Obenour 2020-11-26 17:37:52 -05:00
父节点 9b3a598eff
当前提交 f4d93fd68e
找不到此签名对应的密钥
GPG 密钥 ID: 28A45C93B0B5B6E0

查看文件

@ -116,9 +116,11 @@ class TC_00_DispVM(qubes.tests.QubesTestCase):
dispvm = self.app.add_new_vm(qubes.vm.dispvm.DispVM,
name='test-dispvm', template=self.appvm)
with self.assertRaises(qubes.exc.QubesValueError):
with self.assertRaises(qubes.exc.QubesVMNotHaltedError):
dispvm.template = self.appvm
with self.assertRaises(qubes.exc.QubesValueError):
with self.assertRaises(qubes.exc.QubesVMNotHaltedError):
dispvm.template = qubes.property.DEFAULT
dispvm.kill()
dispvm.template = qubes.property.DEFAULT
def test_003_dvmtemplate_template_change(self):