def _setUpLaunchpadServer(self, user_id, codehosting_api, backing_transport): server = LaunchpadServer(XMLRPCWrapper(codehosting_api), user_id, backing_transport) server.start_server() self.addCleanup(server.stop_server) return server
def setUp(self): super(TestBranchFileSystemClient, self).setUp() frontend = InMemoryFrontend() self.factory = frontend.getLaunchpadObjectFactory() self.user = self.factory.makePerson() self._xmlrpc_client = XMLRPCWrapper(frontend.getCodehostingEndpoint()) self.fake_time = FakeTime(12345)
def get_server(self): if self._server is None: self._server = LaunchpadServer(XMLRPCWrapper(self.codehosting_api), self.requester.id, self.backing_transport) self._server.start_server() self.addCleanup(self._server.stop_server) return self._server
def setUp(self): super(TestFilesystem, self).setUp() self.disable_directory_isolation() frontend = InMemoryFrontend() self.factory = frontend.getLaunchpadObjectFactory() endpoint = XMLRPCWrapper(frontend.getCodehostingEndpoint()) self.requester = self.factory.makePerson() self._server = LaunchpadServer( endpoint, self.requester.id, MemoryTransport()) self._server.start_server() self.addCleanup(self._server.stop_server)
def setUp(self): TestCase.setUp(self) frontend = InMemoryFrontend() self.factory = frontend.getLaunchpadObjectFactory() self.codehosting_endpoint = XMLRPCWrapper( frontend.getCodehostingEndpoint())
def getServer(self, codehosting_api, user_id, backing_transport): return LaunchpadServer(XMLRPCWrapper(codehosting_api), user_id, backing_transport)
def getLaunchpadServer(self, codehosting_api, user_id): return LaunchpadInternalServer('lp-test:///', XMLRPCWrapper(codehosting_api), MemoryTransport())
def getLaunchpadServer(self, codehosting_api, user_id): return LaunchpadServer(XMLRPCWrapper(codehosting_api), user_id, MemoryTransport())