(self, clock, apis, domains=())
Create a MimicCore with an IReactorTime to do any time-based scheduling
        against.

        :param clock: an IReactorTime which will be used for session timeouts
            and determining timestamps.
        :type clock: :obj:`twisted.internet.interfaces.IReactorTime`

        :param apis: an iterable of all :obj:`IAPIMock` and
            :obj:`IAPIExternalAPI` mocks that this MimicCore will expose.

        :param domains: an iterable of all :obj:`IAPIDomainMock`s that this
            MimicCore will expose.
Create a MimicCore with an IReactorTime to do any time-based scheduling
        against.
Create a MimicCore with an IReactorTime to do any time - based scheduling against .
def __init__(self, clock, apis, domains=()):
        """
        Create a MimicCore with an IReactorTime to do any time-based scheduling
        against.

        :param clock: an IReactorTime which will be used for session timeouts
            and determining timestamps.
        :type clock: :obj:`twisted.internet.interfaces.IReactorTime`

        :param apis: an iterable of all :obj:`IAPIMock` and
            :obj:`IAPIExternalAPI` mocks that this MimicCore will expose.

        :param domains: an iterable of all :obj:`IAPIDomainMock`s that this
            MimicCore will expose.
        """
        self._uuid_to_api_internal = {}
        self._uuid_to_api_external = {}
        self.sessions = SessionStore(clock)
        self.message_store = MessageStore()
        self.contacts_store = ContactsStore()
        self.ironic_node_store = IronicNodeStore()
        self.glance_admin_image_store = GlanceAdminImageStore()
        self.valkyrie_store = ValkyrieStore()
        self.domains = list(domains)

        for api in apis:
            self.add_api(api)
def __init__ ( self , clock , apis , domains = ( ) ) : self . _uuid_to_api_internal = { } self . _uuid_to_api_external = { } self . sessions = SessionStore ( clock ) self . message_store = MessageStore ( ) self . contacts_store = ContactsStore ( ) self . ironic_node_store = IronicNodeStore ( ) self . glance_admin_image_store = GlanceAdminImageStore ( ) self . valkyrie_store = ValkyrieStore ( ) self . domains = list ( domains ) for api in apis : self . add_api ( api )