1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/computes/tests/fakes.py
catborise 4e0952aa50 test: the computes tests share one fake libvirt domain
test_ownership, test_ownership_race and test_reconciliation each defined
the same fake domain (a name and a UUID); it is computes/tests/fakes.py.
2026-11-06 13:48:03 +03:00

14 lines
311 B
Python

"""Test doubles for the computes tests."""
class Domain:
"""A libvirt domain as the VM list reads it: its name and UUID."""
def __init__(self, name, uuid):
self._name, self._uuid = name, uuid
def name(self):
return self._name
def UUIDString(self):
return self._uuid