tests: make tests.extra.VMWrapper hashable
Allow using VMWrapper as dict key, same as QubesVM.
This commit is contained in:
parent
46177c7c9f
commit
edbfd3843e
@ -62,6 +62,9 @@ class VMWrapper(object):
|
|||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return self._vm == other
|
return self._vm == other
|
||||||
|
|
||||||
|
def __hash__(self):
|
||||||
|
return hash(self._vm)
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
return self._loop.run_until_complete(self._vm.start())
|
return self._loop.run_until_complete(self._vm.start())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user