コード例 #1
0
ファイル: test_service.py プロジェクト: BantouTelecom/junebug
    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)
コード例 #2
0
ファイル: test_service.py プロジェクト: todun/junebug
    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)
コード例 #3
0
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)
コード例 #4
0
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)