def test_start_service(self): service = JunebugService(JunebugConfig({ 'host': '127.0.0.1', 'port': 0, })) yield service.startService() server = service._port self.assertTrue(server.connected) yield service.stopService() self.assertFalse(server.connected)
def test_start_service(self): service = JunebugService( JunebugConfig({ 'host': '127.0.0.1', 'port': 0, })) yield service.startService() server = service._port self.assertTrue(server.connected) yield service.stopService() self.assertFalse(server.connected)
def start_server(config): '''Starts a new Junebug HTTP API server on the specified resource and port''' service = JunebugService(config) yield service.startService() returnValue(service)
def start_server(config): '''Starts a new Junebug HTTP API server on the specified resource and port''' service = JunebugService(config) yield service.startService() returnValue(service)