tests: make tests.extra.VMWrapper hashable

Allow using VMWrapper as dict key, same as QubesVM.
This commit is contained in:
Marek Marczykowski-Górecki 2018-01-18 16:51:05 +01:00
parent 46177c7c9f
commit edbfd3843e
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -62,6 +62,9 @@ class VMWrapper(object):
def __eq__(self, other):
return self._vm == other
def __hash__(self):
return hash(self._vm)
def start(self):
return self._loop.run_until_complete(self._vm.start())