Module test_server.server

class test_server.server.TestServer(port=0, address='127.0.0.1', engine=None)[source]
get_url(path='', port=None)[source]

Build URL that is served by HTTP server.

reset()[source]
server_thread(server_created)[source]

Ask HTTP server start processing requests

This function is supposed to be run in separate thread.

start(daemon=True)[source]

Start the HTTP server.

stop()[source]

Stop tornado loop and wait for thread finished it work.

wait_request(timeout)[source]

Stupid implementation that eats CPU.

exception test_server.server.WaitTimeoutError[source]