Skip to content

Commit

Permalink
Test that a DispVM’s template can be changed
Browse files Browse the repository at this point in the history
Previously this raised a QubesValueError.
  • Loading branch information
DemiMarie committed Nov 27, 2020
1 parent 9b3a598 commit f4d93fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qubes/tests/vm/dispvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,12 @@ def test_002_template_change(self):
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):
self.appvm.template_for_dispvms = True
Expand Down

0 comments on commit f4d93fd

Please sign in to comment.