mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
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.
14 lines
311 B
Python
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
|