Add mock libvirt objects
This commit is contained in:
parent
d380fb4aba
commit
71161bfb93
@ -41,6 +41,12 @@ class TestVM(qubes.vm.BaseVM):
|
|||||||
netid = qid
|
netid = qid
|
||||||
uuid = uuid.uuid5(uuid.NAMESPACE_DNS, 'testvm')
|
uuid = uuid.uuid5(uuid.NAMESPACE_DNS, 'testvm')
|
||||||
|
|
||||||
|
class MockLibvirt(object):
|
||||||
|
def undefine(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
libvirt_domain = MockLibvirt()
|
||||||
|
|
||||||
def is_halted(self):
|
def is_halted(self):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -292,6 +292,12 @@ class TestVM(qubes.vm.BaseVM):
|
|||||||
netid = qid
|
netid = qid
|
||||||
uuid = uuid.uuid5(uuid.NAMESPACE_DNS, 'testvm')
|
uuid = uuid.uuid5(uuid.NAMESPACE_DNS, 'testvm')
|
||||||
|
|
||||||
|
class MockLibvirt(object):
|
||||||
|
def undefine(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
libvirt_domain = MockLibvirt()
|
||||||
|
|
||||||
def is_halted(self):
|
def is_halted(self):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user