def setup_method(self, method): TestCase.setup_method(self, method) self.ic = Ice.initialize() self.current = Ice.Current() self.current.adapter = MockAdapter(self.ic) for of in omero.columns.ObjectFactories.values(): of.register(self.ic)
def setup_method(self, method): TestCase.setup_method(self, method) # Session self.sf_provider = mocked_internal_service_factory() omero.util.internal_service_factory = self.sf_provider self.sf = self.sf_provider() # Context serverid = "mock_table" self.communicator = mock_communicator() self.communicator_provider = communicator_provider(self.communicator) self.stop_event = omero.util.concurrency.get_event() self.ctx = omero.util.ServerContext(serverid, self.communicator, self.stop_event) self.current = mock_current(self.communicator) self.__tables = []
def setup_method(self, method): TestCase.setup_method(self, method) self.mox = mox.Mox()
def setup_method(self, method): TestCase.setup_method(self, method) self.mox = Mox()