def build_mock_libvirtconn(): return MockConn()
def mocked_conn(self, monkeypatch): self.conn = MockConn() self.conn._domains.append(MockDomain(self.conn, name="mocked_domain")) mock_get_conn(monkeypatch, self.conn)