SYMBOL INDEX (840 symbols across 63 files) FILE: examples/client/asyncio/latency_client.py function send_ping (line 9) | async def send_ping(): function on_connect (line 16) | async def on_connect(): function on_message (line 22) | async def on_message(data): function start_client (line 29) | async def start_client(): FILE: examples/client/asyncio/simple_client.py function send_hello (line 10) | async def send_hello(): function on_connect (line 23) | def on_connect(): function on_message (line 29) | def on_message(data): function on_disconnect (line 34) | def on_disconnect(reason): function signal_handler (line 38) | def signal_handler(sig, frame): function start_client (line 45) | async def start_client(): FILE: examples/client/javascript/latency_client.js function send (line 6) | function send () { FILE: examples/client/threads/latency_client.py function send_ping (line 8) | def send_ping(): function on_connect (line 15) | def on_connect(): function on_message (line 21) | def on_message(data): FILE: examples/client/threads/simple_client.py function send_hello (line 10) | def send_hello(): function on_connect (line 20) | def on_connect(): function on_message (line 26) | def on_message(data): function on_disconnect (line 31) | def on_disconnect(reason): function signal_handler (line 35) | def signal_handler(sig, frame): FILE: examples/server/aiohttp/latency.py function index (line 10) | async def index(request): function message (line 16) | async def message(sid, data): FILE: examples/server/aiohttp/simple.py function index (line 10) | async def index(request): function connect (line 16) | def connect(sid, environ): function message (line 21) | async def message(sid, data): function disconnect (line 27) | def disconnect(sid, reason): FILE: examples/server/aiohttp/static/engine.io.js function __webpack_require__ (line 31) | function __webpack_require__(moduleId) { FILE: examples/server/asgi/latency.py function message (line 13) | async def message(sid, data): FILE: examples/server/asgi/simple.py function connect (line 13) | def connect(sid, environ): function message (line 18) | async def message(sid, data): function disconnect (line 24) | def disconnect(sid, reason): FILE: examples/server/asgi/static/engine.io.js function __webpack_require__ (line 31) | function __webpack_require__(moduleId) { FILE: examples/server/javascript/public/index.js function $ (line 10) | function $ (id) { return document.getElementById(id); } function render (line 17) | function render () { function send (line 33) | function send () { FILE: examples/server/sanic/latency.py function index (line 12) | async def index(request): function message (line 18) | async def message(sid, data): FILE: examples/server/sanic/simple.py function index (line 12) | async def index(request): function connect (line 18) | def connect(sid, environ): function message (line 23) | async def message(sid, data): function disconnect (line 29) | def disconnect(sid, reason): FILE: examples/server/sanic/static/engine.io.js function __webpack_require__ (line 31) | function __webpack_require__(moduleId) { FILE: examples/server/tornado/latency.py class MainHandler (line 15) | class MainHandler(tornado.web.RequestHandler): method get (line 16) | def get(self): function message (line 21) | async def message(sid, data): function main (line 25) | def main(): FILE: examples/server/tornado/simple.py class MainHandler (line 15) | class MainHandler(tornado.web.RequestHandler): method get (line 16) | def get(self): function connect (line 21) | def connect(sid, environ): function message (line 26) | async def message(sid, data): function disconnect (line 32) | def disconnect(sid, reason): function main (line 36) | def main(): FILE: examples/server/tornado/static/engine.io.js function __webpack_require__ (line 31) | function __webpack_require__(moduleId) { FILE: examples/server/wsgi/latency.py function index (line 15) | def index(): function message (line 20) | def message(sid, data): FILE: examples/server/wsgi/simple.py function index (line 15) | def index(): function connect (line 20) | def connect(sid, environ): function message (line 25) | def message(sid, data): function disconnect (line 31) | def disconnect(sid, reason): FILE: examples/server/wsgi/static/engine.io.js function __webpack_require__ (line 31) | function __webpack_require__(moduleId) { FILE: src/engineio/async_client.py function async_signal_handler (line 26) | def async_signal_handler(): class AsyncClient (line 47) | class AsyncClient(base_client.BaseClient): method is_asyncio_based (line 85) | def is_asyncio_based(self): method connect (line 88) | async def connect(self, url, headers=None, transports=None, method wait (line 135) | async def wait(self): method send (line 146) | async def send(self, data): method disconnect (line 157) | async def disconnect(self, abort=False, reason=None): method start_background_task (line 183) | def start_background_task(self, target, *args, **kwargs): method sleep (line 197) | async def sleep(self, seconds=0): method create_queue (line 204) | def create_queue(self, *args, **kwargs): method get_queue_empty_exception (line 208) | def get_queue_empty_exception(self): method create_event (line 214) | def create_event(self): method _reset (line 218) | async def _reset(self): method __del__ (line 230) | def __del__(self): # pragma: no cover method _connect_polling (line 242) | async def _connect_polling(self, url, headers, engineio_path): method _connect_websocket (line 302) | async def _connect_websocket(self, url, headers, engineio_path): method _receive_packet (line 417) | async def _receive_packet(self, pkt): method _send_packet (line 437) | async def _send_packet(self, pkt): method _send_request (line 447) | async def _send_request( method _trigger_event (line 469) | async def _trigger_event(self, event, *args, **kwargs): method _read_loop_polling (line 530) | async def _read_loop_polling(self): method _read_loop_websocket (line 572) | async def _read_loop_websocket(self): method _write_loop (line 627) | async def _write_loop(self): FILE: src/engineio/async_drivers/_websocket_wsgi.py class SimpleWebSocketWSGI (line 4) | class SimpleWebSocketWSGI: # pragma: no cover method __init__ (line 9) | def __init__(self, handler, server, **kwargs): method __call__ (line 13) | def __call__(self, environ, start_response): method close (line 20) | def close(self): method send (line 24) | def send(self, message): method wait (line 30) | def wait(self): FILE: src/engineio/async_drivers/aiohttp.py function create_route (line 7) | def create_route(app, engineio_server, engineio_endpoint): function translate_request (line 20) | def translate_request(request): function make_response (line 67) | def make_response(status, headers, payload, environ): class WebSocket (line 75) | class WebSocket: # pragma: no cover method __init__ (line 80) | def __init__(self, handler, server): method __call__ (line 84) | async def __call__(self, environ): method close (line 93) | async def close(self): method send (line 96) | async def send(self, message): method wait (line 106) | async def wait(self): FILE: src/engineio/async_drivers/asgi.py class ASGIApp (line 8) | class ASGIApp: method __init__ (line 46) | def __init__(self, engineio_server, other_asgi_app=None, method __call__ (line 61) | async def __call__(self, scope, receive, send): method serve_static_file (line 79) | async def serve_static_file(self, static_file, receive, method lifespan (line 92) | async def lifespan(self, scope, receive, send): method not_found (line 123) | async def not_found(self, receive, send): method _ensure_trailing_slash (line 131) | def _ensure_trailing_slash(self, path): function translate_request (line 137) | async def translate_request(scope, receive, send): function make_response (line 221) | async def make_response(status, headers, payload, environ): class WebSocket (line 244) | class WebSocket: # pragma: no cover method __init__ (line 249) | def __init__(self, handler, server): method __call__ (line 254) | async def __call__(self, environ): method close (line 261) | async def close(self): method send (line 268) | async def send(self, message): method wait (line 279) | async def wait(self): FILE: src/engineio/async_drivers/eventlet.py class EventletThread (line 6) | class EventletThread: # pragma: no cover method __init__ (line 12) | def __init__(self, target, args=None, kwargs=None): method start (line 18) | def start(self): method join (line 21) | def join(self): class WebSocketWSGI (line 26) | class WebSocketWSGI(_WebSocketWSGI): # pragma: no cover method __init__ (line 27) | def __init__(self, handler, server): method __call__ (line 36) | def __call__(self, environ, start_response): FILE: src/engineio/async_drivers/gevent.py class Thread (line 13) | class Thread(gevent.Greenlet): # pragma: no cover method __init__ (line 18) | def __init__(self, target, args=[], kwargs={}): method _run (line 21) | def _run(self): class WebSocketWSGI (line 26) | class WebSocketWSGI(SimpleWebSocketWSGI): # pragma: no cover method __init__ (line 32) | def __init__(self, handler, server): method __init__ (line 49) | def __init__(self, handler, server): method __call__ (line 52) | def __call__(self, environ, start_response): method close (line 66) | def close(self): method send (line 69) | def send(self, message): method wait (line 72) | def wait(self): class WebSocketWSGI (line 43) | class WebSocketWSGI: # pragma: no cover method __init__ (line 32) | def __init__(self, handler, server): method __init__ (line 49) | def __init__(self, handler, server): method __call__ (line 52) | def __call__(self, environ, start_response): method close (line 66) | def close(self): method send (line 69) | def send(self, message): method wait (line 72) | def wait(self): FILE: src/engineio/async_drivers/gevent_uwsgi.py class Thread (line 9) | class Thread(gevent.Greenlet): # pragma: no cover method __init__ (line 14) | def __init__(self, target, args=[], kwargs={}): method _run (line 17) | def _run(self): class uWSGIWebSocket (line 21) | class uWSGIWebSocket: # pragma: no cover method __init__ (line 26) | def __init__(self, handler, server): method __call__ (line 31) | def __call__(self, environ, start_response): method close (line 66) | def close(self): method _send (line 73) | def _send(self, msg): method _decode_received (line 85) | def _decode_received(self, msg): method send (line 97) | def send(self, msg): method wait (line 107) | def wait(self): FILE: src/engineio/async_drivers/sanic.py function create_route (line 15) | def create_route(app, engineio_server, engineio_endpoint): # pragma: no... function translate_request (line 31) | def translate_request(request): # pragma: no cover function make_response (line 94) | def make_response(status, headers, payload, environ): # pragma: no cover class WebSocket (line 109) | class WebSocket: # pragma: no cover method __init__ (line 114) | def __init__(self, handler, server): method __call__ (line 119) | async def __call__(self, environ): method close (line 128) | async def close(self): method send (line 131) | async def send(self, message): method wait (line 134) | async def wait(self): FILE: src/engineio/async_drivers/threading.py class DaemonThread (line 7) | class DaemonThread(threading.Thread): # pragma: no cover method __init__ (line 8) | def __init__(self, *args, **kwargs): FILE: src/engineio/async_drivers/tornado.py function get_tornado_handler (line 11) | def get_tornado_handler(engineio_server): function translate_request (line 64) | def translate_request(handler): function make_response (line 129) | def make_response(status, headers, payload, environ): class WebSocket (line 146) | class WebSocket: # pragma: no cover method __init__ (line 151) | def __init__(self, handler, server): method __call__ (line 155) | async def __call__(self, environ): method close (line 160) | async def close(self): method send (line 163) | async def send(self, message): method wait (line 170) | async def wait(self): FILE: src/engineio/async_server.py class AsyncServer (line 16) | class AsyncServer(base_server.BaseServer): method is_asyncio_based (line 85) | def is_asyncio_based(self): method async_modes (line 88) | def async_modes(self): method attach (line 91) | def attach(self, app, engineio_path='engine.io'): method send (line 96) | async def send(self, sid, data): method send_packet (line 108) | async def send_packet(self, sid, pkt): method get_session (line 124) | async def get_session(self, sid): method save_session (line 136) | async def save_session(self, sid, session): method session (line 145) | def session(self, sid): method disconnect (line 182) | async def disconnect(self, sid=None): method handle_request (line 208) | async def handle_request(self, *args, **kwargs): method shutdown (line 360) | async def shutdown(self): method start_background_task (line 372) | def start_background_task(self, target, *args, **kwargs): method sleep (line 387) | async def sleep(self, seconds=0): method create_queue (line 399) | def create_queue(self, *args, **kwargs): method get_queue_empty_exception (line 409) | def get_queue_empty_exception(self): method create_event (line 419) | def create_event(self, *args, **kwargs): method _make_response (line 429) | async def _make_response(self, response_dict, environ): method _handle_connect (line 444) | async def _handle_connect(self, environ, transport, jsonp_index=None): method _trigger_event (line 502) | async def _trigger_event(self, event, *args, **kwargs): method _service_task (line 563) | async def _service_task(self): # pragma: no cover FILE: src/engineio/async_socket.py class AsyncSocket (line 11) | class AsyncSocket(base_socket.BaseSocket): method poll (line 12) | async def poll(self): method receive (line 35) | async def receive(self, pkt): method check_ping_timeout (line 55) | async def check_ping_timeout(self): method send (line 71) | async def send(self, pkt): method handle_get_request (line 82) | async def handle_get_request(self, environ): method handle_post_request (line 105) | async def handle_post_request(self, environ): method close (line 116) | async def close(self, wait=True, abort=False, reason=None): method schedule_ping (line 130) | def schedule_ping(self): method _send_ping (line 133) | async def _send_ping(self): method _upgrade_websocket (line 140) | async def _upgrade_websocket(self, environ): method _websocket_handler (line 151) | async def _websocket_handler(self, ws): FILE: src/engineio/base_client.py function signal_handler (line 12) | def signal_handler(sig, frame): class BaseClient (line 30) | class BaseClient: class reason (line 33) | class reason: method __init__ (line 42) | def __init__(self, logger=False, json=None, request_timeout=5, method is_asyncio_based (line 86) | def is_asyncio_based(self): method on (line 89) | def on(self, event, handler=None): method transport (line 122) | def transport(self): method _reset (line 130) | def _reset(self): method _get_engineio_url (line 134) | def _get_engineio_url(self, url, engineio_path, transport): method _get_url_timestamp (line 155) | def _get_url_timestamp(self): method create_queue (line 161) | def create_queue(self, *args, **kwargs): # pragma: no cover method get_queue_empty_exception (line 165) | def get_queue_empty_exception(self): # pragma: no cover FILE: src/engineio/base_server.py class BaseServer (line 15) | class BaseServer: class reason (line 22) | class reason: method __init__ (line 35) | def __init__(self, async_mode=None, ping_interval=25, ping_timeout=20, method is_asyncio_based (line 114) | def is_asyncio_based(self): method async_modes (line 117) | def async_modes(self): method on (line 120) | def on(self, event, handler=None): method transport (line 162) | def transport(self, sid): method create_queue (line 172) | def create_queue(self, *args, **kwargs): method get_queue_empty_exception (line 181) | def get_queue_empty_exception(self): method create_event (line 190) | def create_event(self, *args, **kwargs): method generate_id (line 199) | def generate_id(self): method _generate_sid_cookie (line 206) | def _generate_sid_cookie(self, sid, attributes): method _upgrades (line 220) | def _upgrades(self, sid, transport): method _get_socket (line 234) | def _get_socket(self, sid): method _ok (line 245) | def _ok(self, packets=None, headers=None, jsonp_index=None): method _bad_request (line 260) | def _bad_request(self, message=None): method _method_not_found (line 269) | def _method_not_found(self): method _unauthorized (line 275) | def _unauthorized(self, message=None): method _cors_allowed_origins (line 284) | def _cors_allowed_origins(self, environ): method _cors_headers (line 319) | def _cors_headers(self, environ): method _gzip (line 339) | def _gzip(self, response): method _deflate (line 346) | def _deflate(self, response): method _log_error_once (line 350) | def _log_error_once(self, message, message_key): FILE: src/engineio/base_socket.py class BaseSocket (line 1) | class BaseSocket: method __init__ (line 4) | def __init__(self, server, sid): FILE: src/engineio/client.py class Client (line 27) | class Client(base_client.BaseClient): method connect (line 64) | def connect(self, url, headers=None, transports=None, method wait (line 99) | def wait(self): method send (line 108) | def send(self, data): method disconnect (line 117) | def disconnect(self, abort=False, reason=None): method start_background_task (line 141) | def start_background_task(self, target, *args, **kwargs): method sleep (line 160) | def sleep(self, seconds=0): method create_queue (line 164) | def create_queue(self, *args, **kwargs): method get_queue_empty_exception (line 168) | def get_queue_empty_exception(self): method create_event (line 174) | def create_event(self, *args, **kwargs): method _reset (line 178) | def _reset(self): method _connect_polling (line 187) | def _connect_polling(self, url, headers, engineio_path): method _connect_websocket (line 248) | def _connect_websocket(self, url, headers, engineio_path): method _receive_packet (line 416) | def _receive_packet(self, pkt): method _send_packet (line 435) | def _send_packet(self, pkt): method _send_request (line 445) | def _send_request( method _trigger_event (line 460) | def _trigger_event(self, event, *args, **kwargs): method _read_loop_polling (line 481) | def _read_loop_polling(self): method _read_loop_websocket (line 522) | def _read_loop_websocket(self): method _write_loop (line 573) | def _write_loop(self): FILE: src/engineio/exceptions.py class EngineIOError (line 1) | class EngineIOError(Exception): class ContentTooLongError (line 5) | class ContentTooLongError(EngineIOError): class UnknownPacketError (line 9) | class UnknownPacketError(EngineIOError): class QueueEmpty (line 13) | class QueueEmpty(EngineIOError): class SocketIsClosedError (line 17) | class SocketIsClosedError(EngineIOError): class ConnectionError (line 21) | class ConnectionError(EngineIOError): FILE: src/engineio/json.py function _safe_int (line 7) | def _safe_int(s): function loads (line 13) | def loads(*args, **kwargs): FILE: src/engineio/middleware.py class WSGIApp (line 5) | class WSGIApp: method __init__ (line 34) | def __init__(self, engineio_app, wsgi_app=None, static_files=None, method __call__ (line 45) | def __call__(self, environ, start_response): method not_found (line 77) | def not_found(self, start_response): class Middleware (line 82) | class Middleware(WSGIApp): method __init__ (line 84) | def __init__(self, engineio_app, wsgi_app=None, FILE: src/engineio/packet.py class Packet (line 10) | class Packet: method __init__ (line 15) | def __init__(self, packet_type=NOOP, data=None, encoded_packet=None): method encode (line 30) | def encode(self, b64=False): method decode (line 56) | def decode(self, encoded_packet): FILE: src/engineio/payload.py class Payload (line 6) | class Payload: method __init__ (line 10) | def __init__(self, packets=None, encoded_payload=None): method encode (line 15) | def encode(self, jsonp_index=None): method decode (line 30) | def decode(self, encoded_payload): FILE: src/engineio/server.py class Server (line 12) | class Server(base_server.BaseServer): method send (line 84) | def send(self, sid, data): method send_packet (line 94) | def send_packet(self, sid, pkt): method get_session (line 108) | def get_session(self, sid): method save_session (line 121) | def save_session(self, sid, session): method session (line 130) | def session(self, sid): method disconnect (line 167) | def disconnect(self, sid=None): method handle_request (line 188) | def handle_request(self, environ, start_response): method shutdown (line 341) | def shutdown(self): method start_background_task (line 353) | def start_background_task(self, target, *args, **kwargs): method sleep (line 372) | def sleep(self, seconds=0): method _handle_connect (line 382) | def _handle_connect(self, environ, start_response, transport, method _trigger_event (line 444) | def _trigger_event(self, event, *args, **kwargs): method _service_task (line 472) | def _service_task(self): # pragma: no cover FILE: src/engineio/socket.py class Socket (line 10) | class Socket(base_socket.BaseSocket): method poll (line 12) | def poll(self): method receive (line 35) | def receive(self, pkt): method check_ping_timeout (line 56) | def check_ping_timeout(self): method send (line 72) | def send(self, pkt): method handle_get_request (line 83) | def handle_get_request(self, environ, start_response): method handle_post_request (line 106) | def handle_post_request(self, environ): method close (line 117) | def close(self, wait=True, abort=False, reason=None): method schedule_ping (line 132) | def schedule_ping(self): method _send_ping (line 135) | def _send_ping(self): method _upgrade_websocket (line 142) | def _upgrade_websocket(self, environ, start_response): method _websocket_handler (line 153) | def _websocket_handler(self, ws): FILE: src/engineio/static_files.py function get_static_file (line 13) | def get_static_file(path, static_files): FILE: tests/async/test_aiohttp.py class TestAiohttp (line 9) | class TestAiohttp: method test_create_route (line 10) | def test_create_route(self): method test_translate_request (line 17) | def test_translate_request(self): method test_make_response (line 59) | def test_make_response(self): FILE: tests/async/test_asgi.py class TestAsgi (line 7) | class TestAsgi: method test_create_app (line 8) | async def test_create_app(self): method test_engineio_routing (line 20) | async def test_engineio_routing(self): method test_other_app_routing (line 73) | async def test_other_app_routing(self): method test_other_app_lifespan_routing (line 80) | async def test_other_app_lifespan_routing(self): method test_static_file_routing (line 87) | async def test_static_file_routing(self): method test_lifespan_startup (line 170) | async def test_lifespan_startup(self): method test_lifespan_startup_sync_function (line 181) | async def test_lifespan_startup_sync_function(self): method test_lifespan_startup_async_function (line 199) | async def test_lifespan_startup_async_function(self): method test_lifespan_startup_function_exception (line 217) | async def test_lifespan_startup_function_exception(self): method test_lifespan_shutdown (line 231) | async def test_lifespan_shutdown(self): method test_lifespan_shutdown_sync_function (line 241) | async def test_lifespan_shutdown_sync_function(self): method test_lifespan_shutdown_async_function (line 258) | async def test_lifespan_shutdown_async_function(self): method test_lifespan_shutdown_function_exception (line 275) | async def test_lifespan_shutdown_function_exception(self): method test_lifespan_invalid (line 289) | async def test_lifespan_invalid(self): method test_not_found (line 300) | async def test_not_found(self): method test_translate_request (line 317) | async def test_translate_request(self): method test_translate_request_no_query_string (line 358) | async def test_translate_request_no_query_string(self): method test_translate_request_with_large_body (line 398) | async def test_translate_request_with_large_body(self): method test_translate_websocket_request (line 444) | async def test_translate_websocket_request(self): method test_translate_unknown_request (line 465) | async def test_translate_unknown_request(self): method test_translate_request_bad_unicode (line 475) | async def test_translate_request_bad_unicode(self): method test_make_response (line 499) | async def test_make_response(self): method test_make_response_websocket_accept (line 516) | async def test_make_response_websocket_accept(self): method test_make_response_websocket_reject (line 528) | async def test_make_response_websocket_reject(self): method test_make_response_websocket_reject_no_payload (line 540) | async def test_make_response_websocket_reject_no_payload(self): method test_sub_app_routing (line 552) | async def test_sub_app_routing(self): FILE: tests/async/test_client.py class TestAsyncClient (line 18) | class TestAsyncClient: method mock_queue (line 19) | def mock_queue(self, client): method mock_ws_timeout (line 28) | def mock_ws_timeout(ws_close): method test_is_asyncio_based (line 31) | async def test_is_asyncio_based(self): method test_already_connected (line 35) | async def test_already_connected(self): method test_invalid_transports (line 41) | async def test_invalid_transports(self): method test_some_invalid_transports (line 46) | async def test_some_invalid_transports(self): method test_connect_polling (line 52) | async def test_connect_polling(self): method test_connect_websocket (line 77) | async def test_connect_websocket(self): method test_connect_query_string (line 92) | async def test_connect_query_string(self): method test_connect_custom_headers (line 100) | async def test_connect_custom_headers(self): method test_wait (line 108) | async def test_wait(self): method test_wait_no_task (line 119) | async def test_wait_no_task(self): method test_send (line 124) | async def test_send(self): method test_disconnect_not_connected (line 145) | async def test_disconnect_not_connected(self): method test_disconnect_polling (line 153) | async def test_disconnect_polling(self): method test_disconnect_websocket (line 170) | async def test_disconnect_websocket(self): method test_disconnect_polling_abort (line 187) | async def test_disconnect_polling_abort(self): method test_disconnect_websocket_abort (line 201) | async def test_disconnect_websocket_abort(self): method test_background_tasks (line 215) | async def test_background_tasks(self): method test_sleep (line 225) | async def test_sleep(self): method test_create_queue (line 229) | async def test_create_queue(self): method test_create_event (line 235) | async def test_create_event(self): method test_polling_connection_failed (line 243) | async def test_polling_connection_failed(self, _time): method test_polling_connection_404 (line 255) | async def test_polling_connection_404(self): method test_polling_connection_404_no_json (line 271) | async def test_polling_connection_404_no_json(self): method test_polling_connection_invalid_packet (line 287) | async def test_polling_connection_invalid_packet(self): method test_polling_connection_no_open_packet (line 295) | async def test_polling_connection_no_open_packet(self): method test_polling_connection_successful (line 317) | async def test_polling_connection_successful(self): method test_polling_https_noverify_connection_successful (line 358) | async def test_polling_https_noverify_connection_successful(self): method test_polling_connection_with_more_packets (line 399) | async def test_polling_connection_with_more_packets(self): method test_polling_connection_upgraded (line 432) | async def test_polling_connection_upgraded(self): method test_polling_connection_not_upgraded (line 470) | async def test_polling_connection_not_upgraded(self): method test_websocket_connection_failed (line 509) | async def test_websocket_connection_failed(self, _time): method test_websocket_connection_extra (line 528) | async def test_websocket_connection_extra(self, _time): method test_websocket_upgrade_failed (line 552) | async def test_websocket_upgrade_failed(self, _time): method test_websocket_connection_no_open_packet (line 566) | async def test_websocket_connection_no_open_packet(self): method test_websocket_connection_successful (line 581) | async def test_websocket_connection_successful(self, _time): method test_websocket_https_noverify_connection_successful (line 622) | async def test_websocket_https_noverify_connection_successful(self, _t... method test_websocket_connection_with_cookies (line 664) | async def test_websocket_connection_with_cookies(self, _time): method test_websocket_connection_with_cookie_header (line 699) | async def test_websocket_connection_with_cookie_header(self, _time): method test_websocket_connection_with_cookies_and_headers (line 737) | async def test_websocket_connection_with_cookies_and_headers(self, _ti... method test_websocket_upgrade_no_pong (line 776) | async def test_websocket_upgrade_no_pong(self): method test_websocket_upgrade_successful (line 808) | async def test_websocket_upgrade_successful(self): method test_receive_unknown_packet (line 840) | async def test_receive_unknown_packet(self): method test_receive_noop_packet (line 845) | async def test_receive_noop_packet(self): method test_receive_ping_packet (line 850) | async def test_receive_ping_packet(self): method test_receive_message_packet (line 856) | async def test_receive_message_packet(self): method test_receive_close_packet (line 864) | async def test_receive_close_packet(self): method test_send_packet_disconnected (line 871) | async def test_send_packet_disconnected(self): method test_send_packet (line 878) | async def test_send_packet(self): method test_trigger_event_function (line 887) | async def test_trigger_event_function(self): method test_trigger_event_coroutine (line 899) | async def test_trigger_event_coroutine(self): method test_trigger_event_function_error (line 911) | async def test_trigger_event_function_error(self): method test_trigger_event_coroutine_error (line 924) | async def test_trigger_event_coroutine_error(self): method test_trigger_event_function_async (line 937) | async def test_trigger_event_function_async(self): method test_trigger_event_coroutine_async (line 950) | async def test_trigger_event_coroutine_async(self): method test_trigger_event_function_async_error (line 963) | async def test_trigger_event_function_async_error(self): method test_trigger_event_coroutine_async_error (line 977) | async def test_trigger_event_coroutine_async_error(self): method test_trigger_unknown_event (line 991) | async def test_trigger_unknown_event(self): method test_trigger_legacy_disconnect_event (line 997) | async def test_trigger_legacy_disconnect_event(self): method test_trigger_legacy_disconnect_event_async (line 1007) | async def test_trigger_legacy_disconnect_event_async(self): method test_read_loop_polling_disconnected (line 1017) | async def test_read_loop_polling_disconnected(self): method test_read_loop_polling_no_response (line 1027) | async def test_read_loop_polling_no_response(self, _time): method test_read_loop_polling_bad_status (line 1048) | async def test_read_loop_polling_bad_status(self, _time): method test_read_loop_polling_bad_packet (line 1066) | async def test_read_loop_polling_bad_packet(self, _time): method test_read_loop_polling (line 1084) | async def test_read_loop_polling(self): method test_read_loop_websocket_disconnected (line 1116) | async def test_read_loop_websocket_disconnected(self): method test_read_loop_websocket_timeout (line 1123) | async def test_read_loop_websocket_timeout(self): method test_read_loop_websocket_no_response (line 1137) | async def test_read_loop_websocket_no_response(self): method test_read_loop_websocket_unexpected_error (line 1153) | async def test_read_loop_websocket_unexpected_error(self): method test_read_loop_websocket (line 1167) | async def test_read_loop_websocket(self): method test_write_loop_disconnected (line 1188) | async def test_write_loop_disconnected(self): method test_write_loop_no_packets (line 1194) | async def test_write_loop_no_packets(self): method test_write_loop_empty_queue (line 1205) | async def test_write_loop_empty_queue(self): method test_write_loop_polling_one_packet (line 1215) | async def test_write_loop_polling_one_packet(self): method test_write_loop_polling_three_packets (line 1245) | async def test_write_loop_polling_three_packets(self): method test_write_loop_polling_two_packets_done (line 1285) | async def test_write_loop_polling_two_packets_done(self): method test_write_loop_polling_bad_connection (line 1321) | async def test_write_loop_polling_bad_connection(self): method test_write_loop_polling_bad_status (line 1348) | async def test_write_loop_polling_bad_status(self): method test_write_loop_websocket_one_packet (line 1377) | async def test_write_loop_websocket_one_packet(self): method test_write_loop_websocket_three_packets (line 1398) | async def test_write_loop_websocket_three_packets(self): method test_write_loop_websocket_one_packet_binary (line 1427) | async def test_write_loop_websocket_one_packet_binary(self): method test_write_loop_websocket_bad_connection (line 1445) | async def test_write_loop_websocket_bad_connection(self): method test_signal_handler (line 1467) | async def test_signal_handler(self, original_handler): FILE: tests/async/test_server.py class TestAsyncServer (line 18) | class TestAsyncServer: method get_async_mock (line 20) | def get_async_mock(environ={'REQUEST_METHOD': 'GET', 'QUERY_STRING': '... method _get_mock_socket (line 38) | def _get_mock_socket(self): method setup_class (line 53) | def setup_class(cls): method teardown_class (line 57) | def teardown_class(cls): method setup_method (line 60) | def setup_method(self): method teardown_method (line 63) | def teardown_method(self): method test_is_asyncio_based (line 67) | async def test_is_asyncio_based(self): method test_async_modes (line 71) | async def test_async_modes(self): method test_async_mode_aiohttp (line 75) | async def test_async_mode_aiohttp(self): method test_async_mode_auto_aiohttp (line 85) | async def test_async_mode_auto_aiohttp(self, import_module): method test_async_modes_wsgi (line 90) | async def test_async_modes_wsgi(self): method test_attach (line 101) | async def test_attach(self, import_module): method test_session (line 114) | async def test_session(self): method test_disconnect (line 126) | async def test_disconnect(self): method test_disconnect_all (line 135) | async def test_disconnect_all(self): method test_jsonp_not_supported (line 150) | async def test_jsonp_not_supported(self, import_module): method test_jsonp_index (line 163) | async def test_jsonp_index(self, import_module): method test_connect (line 182) | async def test_connect(self, import_module): method test_connect_async_request_response_handlers (line 206) | async def test_connect_async_request_response_handlers( method test_connect_no_upgrades (line 234) | async def test_connect_no_upgrades(self, import_module): method test_connect_bad_eio_version (line 245) | async def test_connect_bad_eio_version(self, import_module): method test_connect_custom_ping_times (line 258) | async def test_connect_custom_ping_times(self, import_module): method test_connect_bad_poll (line 273) | async def test_connect_bad_poll(self, AsyncSocket, import_module): method test_connect_transport_websocket (line 285) | async def test_connect_transport_websocket(self, AsyncSocket, method test_http_upgrade_case_insensitive (line 308) | async def test_http_upgrade_case_insensitive(self, AsyncSocket, method test_connect_transport_websocket_closed (line 331) | async def test_connect_transport_websocket_closed( method test_connect_transport_invalid (line 355) | async def test_connect_transport_invalid(self, import_module): method test_connect_transport_websocket_without_upgrade (line 366) | async def test_connect_transport_websocket_without_upgrade( method test_connect_cors_headers (line 378) | async def test_connect_cors_headers(self, import_module): method test_connect_cors_allowed_origin (line 388) | async def test_connect_cors_allowed_origin(self, import_module): method test_connect_cors_allowed_origin_with_callable (line 400) | async def test_connect_cors_allowed_origin_with_callable( method test_connect_cors_not_allowed_origin (line 424) | async def test_connect_cors_not_allowed_origin(self, import_module): method test_connect_cors_not_allowed_origin_async_response (line 437) | async def test_connect_cors_not_allowed_origin_async_response( method test_connect_str_cors_all_origins (line 457) | async def test_connect_str_cors_all_origins(self, import_module): method test_connect_list_cors_all_origins (line 470) | async def test_connect_list_cors_all_origins(self, import_module): method test_connect_cors_one_origin (line 483) | async def test_connect_cors_one_origin(self, import_module): method test_connect_cors_one_origin_not_allowed (line 496) | async def test_connect_cors_one_origin_not_allowed(self, import_module): method test_connect_cors_headers_default_origin (line 509) | async def test_connect_cors_headers_default_origin(self, import_module): method test_connect_cors_no_credentials (line 527) | async def test_connect_cors_no_credentials(self, import_module): method test_connect_cors_options (line 537) | async def test_connect_cors_options(self, import_module): method test_connect_cors_disabled (line 552) | async def test_connect_cors_disabled(self, import_module): method test_connect_cors_default_no_origin (line 569) | async def test_connect_cors_default_no_origin(self, import_module): method test_connect_str_cors_all_no_origin (line 580) | async def test_connect_str_cors_all_no_origin(self, import_module): method test_connect_list_cors_all_no_origin (line 591) | async def test_connect_list_cors_all_no_origin(self, import_module): method test_connect_cors_disabled_no_origin (line 602) | async def test_connect_cors_disabled_no_origin(self, import_module): method test_connect_event (line 613) | async def test_connect_event(self, import_module): method test_connect_event_rejects (line 627) | async def test_connect_event_rejects(self, import_module): method test_connect_event_rejects_with_message (line 643) | async def test_connect_event_rejects_with_message(self, import_module): method test_method_not_found (line 661) | async def test_method_not_found(self, import_module): method test_get_request_with_bad_sid (line 672) | async def test_get_request_with_bad_sid(self, import_module): method test_get_request_bad_websocket_transport (line 683) | async def test_get_request_bad_websocket_transport(self, import_module): method test_get_request_bad_polling_transport (line 696) | async def test_get_request_bad_polling_transport(self, import_module): method test_post_request_with_bad_sid (line 709) | async def test_post_request_with_bad_sid(self, import_module): method test_send (line 720) | async def test_send(self, import_module): method test_send_unknown_socket (line 733) | async def test_send_unknown_socket(self, import_module): method test_get_request (line 741) | async def test_get_request(self, import_module): method test_get_request_custom_response (line 761) | async def test_get_request_custom_response(self, import_module): method test_get_request_closes_socket (line 773) | async def test_get_request_closes_socket(self, import_module): method test_get_request_error (line 791) | async def test_get_request_error(self, import_module): method test_post_request (line 808) | async def test_post_request(self, import_module): method test_post_request_error (line 819) | async def test_post_request_error(self, import_module): method _gzip_decompress (line 835) | def _gzip_decompress(b): method test_gzip_compression (line 841) | async def test_gzip_compression(self, import_module): method test_deflate_compression (line 861) | async def test_deflate_compression(self, import_module): method test_gzip_compression_threshold (line 881) | async def test_gzip_compression_threshold(self, import_module): method test_compression_disabled (line 904) | async def test_compression_disabled(self, import_module): method test_compression_unknown (line 928) | async def test_compression_unknown(self, import_module): method test_compression_no_encoding (line 950) | async def test_compression_no_encoding(self, import_module): method test_cookie (line 972) | async def test_cookie(self, import_module): method test_cookie_dict (line 982) | async def test_cookie_dict(self, import_module): method test_no_cookie (line 1002) | async def test_no_cookie(self, import_module): method test_logger (line 1012) | async def test_logger(self): method test_custom_json (line 1026) | async def test_custom_json(self): method test_background_tasks (line 1048) | async def test_background_tasks(self): method test_sleep (line 1062) | async def test_sleep(self): method test_trigger_event_function (line 1066) | async def test_trigger_event_function(self): method test_trigger_event_coroutine (line 1078) | async def test_trigger_event_coroutine(self): method test_trigger_event_function_error (line 1090) | async def test_trigger_event_function_error(self): method test_trigger_event_coroutine_error (line 1103) | async def test_trigger_event_coroutine_error(self): method test_trigger_event_function_async (line 1116) | async def test_trigger_event_function_async(self): method test_trigger_event_coroutine_async (line 1129) | async def test_trigger_event_coroutine_async(self): method test_trigger_event_function_async_error (line 1142) | async def test_trigger_event_function_async_error(self): method test_trigger_event_coroutine_async_error (line 1155) | async def test_trigger_event_coroutine_async_error(self): method test_trigger_legacy_disconnect_event (line 1168) | async def test_trigger_legacy_disconnect_event(self): method test_trigger_legacy_disconnect_event_async (line 1178) | async def test_trigger_legacy_disconnect_event_async(self): method test_create_queue (line 1188) | async def test_create_queue(self): method test_create_event (line 1195) | async def test_create_event(self): method test_service_task_started (line 1203) | async def test_service_task_started(self, import_module): method test_shutdown (line 1213) | async def test_shutdown(self, import_module): method test_transports_disallowed (line 1224) | async def test_transports_disallowed(self, import_module): FILE: tests/async/test_socket.py class TestSocket (line 13) | class TestSocket: method _get_read_mock_coro (line 14) | def _get_read_mock_coro(self, payload): method _get_mock_server (line 20) | def _get_mock_server(self): method test_create (line 50) | async def test_create(self): method test_empty_poll (line 62) | async def test_empty_poll(self): method test_poll (line 68) | async def test_poll(self): method test_poll_none (line 77) | async def test_poll_none(self): method test_poll_none_after_packet (line 83) | async def test_poll_none_after_packet(self): method test_schedule_ping (line 92) | async def test_schedule_ping(self): method test_schedule_ping_closed_socket (line 106) | async def test_schedule_ping_closed_socket(self): method test_pong (line 121) | async def test_pong(self): method test_message_sync_handler (line 128) | async def test_message_sync_handler(self): method test_message_async_handler (line 136) | async def test_message_async_handler(self): method test_invalid_packet (line 145) | async def test_invalid_packet(self): method test_timeout (line 151) | async def test_timeout(self): method test_polling_read (line 162) | async def test_polling_read(self): method test_polling_read_error (line 173) | async def test_polling_read_error(self): method test_polling_write (line 180) | async def test_polling_write(self): method test_polling_write_too_large (line 197) | async def test_polling_write_too_large(self): method test_upgrade_handshake (line 214) | async def test_upgrade_handshake(self): method test_upgrade (line 227) | async def test_upgrade(self): method test_upgrade_twice (line 241) | async def test_upgrade_twice(self): method test_upgrade_packet (line 251) | async def test_upgrade_packet(self): method test_upgrade_no_probe (line 260) | async def test_upgrade_no_probe(self): method test_upgrade_no_upgrade_packet (line 270) | async def test_upgrade_no_upgrade_packet(self): method test_upgrade_not_supported (line 290) | async def test_upgrade_not_supported(self): method test_close_packet (line 299) | async def test_close_packet(self): method test_websocket_read_write (line 309) | async def test_websocket_read_write(self): method test_websocket_upgrade_read_write (line 341) | async def test_websocket_upgrade_read_write(self): method test_websocket_upgrade_with_payload (line 378) | async def test_websocket_upgrade_with_payload(self): method test_websocket_upgrade_with_backlog (line 395) | async def test_websocket_upgrade_with_backlog(self): method test_websocket_read_write_wait_fail (line 427) | async def test_websocket_read_write_wait_fail(self): method test_websocket_upgrade_with_large_packet (line 453) | async def test_websocket_upgrade_with_large_packet(self): method test_websocket_ignore_invalid_packet (line 470) | async def test_websocket_ignore_invalid_packet(self): method test_send_after_close (line 505) | async def test_send_after_close(self): method test_close_after_close (line 512) | async def test_close_after_close(self): method test_close_and_wait (line 525) | async def test_close_and_wait(self): method test_close_without_wait (line 534) | async def test_close_without_wait(self): FILE: tests/async/test_tornado.py class TestTornado (line 11) | class TestTornado: method test_get_tornado_handler (line 12) | async def test_get_tornado_handler(self): method test_translate_request (line 17) | async def test_translate_request(self): method test_make_response (line 50) | async def test_make_response(self): FILE: tests/common/test_client.py class TestClient (line 17) | class TestClient: method mock_queue (line 18) | def mock_queue(self, client): method test_is_asyncio_based (line 23) | def test_is_asyncio_based(self): method test_create (line 27) | def test_create(self): method test_custom_json (line 47) | def test_custom_json(self): method test_logger (line 54) | def test_logger(self): method test_custom_timeout (line 68) | def test_custom_timeout(self): method test_timestamp_requests (line 74) | def test_timestamp_requests(self): method test_on_event (line 82) | def test_on_event(self): method test_on_event_invalid (line 94) | def test_on_event_invalid(self): method test_already_connected (line 99) | def test_already_connected(self): method test_invalid_transports (line 105) | def test_invalid_transports(self): method test_some_invalid_transports (line 110) | def test_some_invalid_transports(self): method test_connect_polling (line 116) | def test_connect_polling(self): method test_connect_websocket (line 141) | def test_connect_websocket(self): method test_connect_query_string (line 156) | def test_connect_query_string(self): method test_connect_custom_headers (line 164) | def test_connect_custom_headers(self): method test_wait (line 172) | def test_wait(self): method test_wait_no_task (line 178) | def test_wait_no_task(self): method test_send (line 183) | def test_send(self): method test_disconnect_not_connected (line 204) | def test_disconnect_not_connected(self): method test_disconnect_polling (line 212) | def test_disconnect_polling(self): method test_disconnect_websocket (line 228) | def test_disconnect_websocket(self): method test_disconnect_polling_abort (line 244) | def test_disconnect_polling_abort(self): method test_disconnect_websocket_abort (line 258) | def test_disconnect_websocket_abort(self): method test_current_transport (line 272) | def test_current_transport(self): method test_background_tasks (line 277) | def test_background_tasks(self): method test_sleep (line 289) | def test_sleep(self): method test_create_queue (line 295) | def test_create_queue(self): method test_create_event (line 301) | def test_create_event(self): method test_polling_connection_failed (line 310) | def test_polling_connection_failed(self, _send_request, _time): method test_polling_connection_404 (line 322) | def test_polling_connection_404(self, _send_request): method test_polling_connection_404_no_json (line 336) | def test_polling_connection_404_no_json(self, _send_request): method test_polling_connection_invalid_packet (line 351) | def test_polling_connection_invalid_packet(self, _send_request): method test_polling_connection_no_open_packet (line 359) | def test_polling_connection_no_open_packet(self, _send_request): method test_polling_connection_successful (line 379) | def test_polling_connection_successful(self, _send_request): method test_polling_https_noverify_connection_successful (line 419) | def test_polling_https_noverify_connection_successful(self, _send_requ... method test_polling_connection_with_more_packets (line 459) | def test_polling_connection_with_more_packets(self, _send_request): method test_polling_connection_upgraded (line 491) | def test_polling_connection_upgraded(self, _send_request): method test_polling_connection_not_upgraded (line 527) | def test_polling_connection_not_upgraded(self, _send_request): method test_websocket_connection_failed (line 566) | def test_websocket_connection_failed(self, create_connection, _time): method test_websocket_connection_extra (line 585) | def test_websocket_connection_extra(self, create_connection, _time): method test_websocket_connection_failed_with_websocket_error (line 605) | def test_websocket_connection_failed_with_websocket_error( method test_websocket_upgrade_failed (line 626) | def test_websocket_upgrade_failed(self, create_connection, _time): method test_websocket_connection_no_open_packet (line 641) | def test_websocket_connection_no_open_packet(self, create_connection): method test_websocket_connection_successful (line 650) | def test_websocket_connection_successful(self, create_connection): method test_websocket_https_noverify_connection_successful (line 690) | def test_websocket_https_noverify_connection_successful( method test_websocket_connection_with_cookies (line 733) | def test_websocket_connection_with_cookies(self, create_connection): method test_websocket_connection_with_cookie_header (line 770) | def test_websocket_connection_with_cookie_header(self, create_connecti... method test_websocket_connection_with_cookies_and_headers (line 807) | def test_websocket_connection_with_cookies_and_headers( method test_websocket_connection_with_auth (line 850) | def test_websocket_connection_with_auth(self, create_connection): method test_websocket_connection_with_cert (line 882) | def test_websocket_connection_with_cert(self, create_connection): method test_websocket_connection_with_cert_and_key (line 915) | def test_websocket_connection_with_cert_and_key(self, create_connection): method test_websocket_connection_verify_with_cert_and_key (line 948) | def test_websocket_connection_verify_with_cert_and_key( method test_websocket_connection_with_proxies (line 988) | def test_websocket_connection_with_proxies(self, create_connection): method test_websocket_connection_without_verify (line 1055) | def test_websocket_connection_without_verify(self, create_connection): method test_websocket_connection_with_verify (line 1089) | def test_websocket_connection_with_verify(self, create_connection): method test_websocket_upgrade_no_pong (line 1123) | def test_websocket_upgrade_no_pong(self, create_connection): method test_websocket_upgrade_successful (line 1150) | def test_websocket_upgrade_successful(self, create_connection): method test_receive_unknown_packet (line 1183) | def test_receive_unknown_packet(self): method test_receive_noop_packet (line 1188) | def test_receive_noop_packet(self): method test_receive_ping_packet (line 1193) | def test_receive_ping_packet(self): method test_receive_message_packet (line 1199) | def test_receive_message_packet(self): method test_receive_close_packet (line 1207) | def test_receive_close_packet(self): method test_send_packet_disconnected (line 1214) | def test_send_packet_disconnected(self): method test_send_packet (line 1221) | def test_send_packet(self): method test_trigger_event (line 1230) | def test_trigger_event(self): method test_trigger_legacy_disconnect_event (line 1257) | def test_trigger_legacy_disconnect_event(self): method test_trigger_unknown_event (line 1267) | def test_trigger_unknown_event(self): method test_trigger_event_error (line 1273) | def test_trigger_event_error(self): method test_engineio_url (line 1289) | def test_engineio_url(self): method test_read_loop_polling_disconnected (line 1324) | def test_read_loop_polling_disconnected(self): method test_read_loop_polling_no_response (line 1334) | def test_read_loop_polling_no_response(self, _time): method test_read_loop_polling_bad_status (line 1355) | def test_read_loop_polling_bad_status(self, _time): method test_read_loop_polling_bad_packet (line 1374) | def test_read_loop_polling_bad_packet(self, _time): method test_read_loop_polling (line 1393) | def test_read_loop_polling(self): method test_read_loop_websocket_disconnected (line 1423) | def test_read_loop_websocket_disconnected(self): method test_read_loop_websocket_timeout (line 1430) | def test_read_loop_websocket_timeout(self): method test_read_loop_websocket_no_response (line 1442) | def test_read_loop_websocket_no_response(self): method test_read_loop_websocket_unexpected_error (line 1454) | def test_read_loop_websocket_unexpected_error(self): method test_read_loop_websocket (line 1466) | def test_read_loop_websocket(self): method test_write_loop_disconnected (line 1485) | def test_write_loop_disconnected(self): method test_write_loop_no_packets (line 1491) | def test_write_loop_no_packets(self): method test_write_loop_empty_queue (line 1502) | def test_write_loop_empty_queue(self): method test_write_loop_polling_one_packet (line 1512) | def test_write_loop_polling_one_packet(self): method test_write_loop_polling_three_packets (line 1540) | def test_write_loop_polling_three_packets(self): method test_write_loop_polling_two_packets_done (line 1574) | def test_write_loop_polling_two_packets_done(self): method test_write_loop_polling_bad_connection (line 1607) | def test_write_loop_polling_bad_connection(self): method test_write_loop_polling_bad_status (line 1635) | def test_write_loop_polling_bad_status(self): method test_write_loop_websocket_one_packet (line 1664) | def test_write_loop_websocket_one_packet(self): method test_write_loop_websocket_three_packets (line 1683) | def test_write_loop_websocket_three_packets(self): method test_write_loop_websocket_one_packet_binary (line 1706) | def test_write_loop_websocket_one_packet_binary(self): method test_write_loop_websocket_bad_connection (line 1725) | def test_write_loop_websocket_bad_connection(self): method test_signal_handler (line 1743) | def test_signal_handler(self, original_handler): FILE: tests/common/test_middleware.py class TestWSGIApp (line 7) | class TestWSGIApp: method test_wsgi_routing (line 8) | def test_wsgi_routing(self): method test_eio_routing (line 17) | def test_eio_routing(self): method test_static_files (line 29) | def test_static_files(self): method test_404 (line 112) | def test_404(self): method test_custom_eio_path (line 124) | def test_custom_eio_path(self): method test_custom_eio_path_slashes (line 143) | def test_custom_eio_path_slashes(self): method test_custom_eio_path_leading_slash (line 157) | def test_custom_eio_path_leading_slash(self): method test_custom_eio_path_trailing_slash (line 169) | def test_custom_eio_path_trailing_slash(self): method test_gunicorn_socket (line 181) | def test_gunicorn_socket(self): method test_legacy_middleware_class (line 191) | def test_legacy_middleware_class(self): FILE: tests/common/test_packet.py class TestPacket (line 6) | class TestPacket: method test_encode_default_packet (line 7) | def test_encode_default_packet(self): method test_decode_default_packet (line 14) | def test_decode_default_packet(self): method test_encode_text_packet (line 18) | def test_encode_text_packet(self): method test_decode_text_packet (line 26) | def test_decode_text_packet(self): method test_encode_empty_text_packet (line 30) | def test_encode_empty_text_packet(self): method test_decode_empty_text_packet (line 38) | def test_decode_empty_text_packet(self): method test_encode_binary_packet (line 42) | def test_encode_binary_packet(self): method test_encode_binary_bytearray_packet (line 49) | def test_encode_binary_bytearray_packet(self): method test_encode_binary_b64_packet (line 56) | def test_encode_binary_b64_packet(self): method test_encode_empty_binary_packet (line 63) | def test_encode_empty_binary_packet(self): method test_decode_binary_packet (line 70) | def test_decode_binary_packet(self): method test_decode_binary_bytearray_packet (line 74) | def test_decode_binary_bytearray_packet(self): method test_decode_binary_b64_packet (line 78) | def test_decode_binary_b64_packet(self): method test_decode_empty_binary_packet (line 82) | def test_decode_empty_binary_packet(self): method test_encode_json_packet (line 86) | def test_encode_json_packet(self): method test_decode_json_packet (line 96) | def test_decode_json_packet(self): method test_decode_json_packet_long_int (line 103) | def test_decode_json_packet_long_int(self): method test_encode_number_packet (line 111) | def test_encode_number_packet(self): method test_decode_number_packet (line 118) | def test_decode_number_packet(self): method test_binary_non_message_packet (line 128) | def test_binary_non_message_packet(self): method test_decode_invalid_empty_text_packet (line 132) | def test_decode_invalid_empty_text_packet(self): method test_encode_cache (line 136) | def test_encode_cache(self): FILE: tests/common/test_payload.py class TestPayload (line 7) | class TestPayload: method test_encode_empty_payload (line 8) | def test_encode_empty_payload(self): method test_decode_empty_payload (line 13) | def test_decode_empty_payload(self): method test_encode_payload_text (line 17) | def test_encode_payload_text(self): method test_encode_payload_text_multiple (line 23) | def test_encode_payload_text_multiple(self): method test_encode_payload_binary (line 30) | def test_encode_payload_binary(self): method test_encode_payload_binary_multiple (line 36) | def test_encode_payload_binary_multiple(self): method test_encode_payload_text_binary_multiple (line 43) | def test_encode_payload_text_binary_multiple(self): method test_encode_jsonp_payload (line 50) | def test_encode_jsonp_payload(self): method test_decode_jsonp_payload (line 56) | def test_decode_jsonp_payload(self): method test_decode_invalid_payload (line 60) | def test_decode_invalid_payload(self): method test_decode_multi_payload_with_too_many_packets (line 64) | def test_decode_multi_payload_with_too_many_packets(self): FILE: tests/common/test_server.py function _mock_import (line 21) | def _mock_import(module, *args, **kwargs): class TestServer (line 27) | class TestServer: method _get_mock_socket (line 36) | def _get_mock_socket(self): method setup_class (line 45) | def setup_class(cls): method teardown_class (line 49) | def teardown_class(cls): method setup_method (line 52) | def setup_method(self): method teardown_method (line 55) | def teardown_method(self): method test_is_asyncio_based (line 59) | def test_is_asyncio_based(self): method test_async_modes (line 63) | def test_async_modes(self): method test_create (line 72) | def test_create(self): method test_create_with_grace_period (line 90) | def test_create_with_grace_period(self): method test_create_ignores_kwargs (line 95) | def test_create_ignores_kwargs(self): method test_async_mode_threading (line 98) | def test_async_mode_threading(self): method test_async_mode_eventlet (line 112) | def test_async_mode_eventlet(self): method test_async_mode_gevent_uwsgi (line 137) | def test_async_mode_gevent_uwsgi(self, import_module): method test_async_mode_gevent_uwsgi_without_uwsgi (line 163) | def test_async_mode_gevent_uwsgi_without_uwsgi(self, import_module): method test_async_mode_gevent_uwsgi_without_websocket (line 180) | def test_async_mode_gevent_uwsgi_without_websocket(self, import_module): method test_async_mode_gevent (line 207) | def test_async_mode_gevent(self, import_module): method test_async_mode_aiohttp (line 233) | def test_async_mode_aiohttp(self, import_module): method test_async_mode_invalid (line 239) | def test_async_mode_invalid(self, import_module): method test_async_mode_auto_eventlet (line 247) | def test_async_mode_auto_eventlet(self, import_module): method test_async_mode_auto_gevent_uwsgi (line 254) | def test_async_mode_auto_gevent_uwsgi(self, import_module): method test_async_mode_auto_gevent (line 262) | def test_async_mode_auto_gevent(self, import_module): method test_async_mode_auto_threading (line 270) | def test_async_mode_auto_threading(self, import_module): method test_generate_id (line 274) | def test_generate_id(self): method test_on_event (line 278) | def test_on_event(self): method test_on_event_invalid (line 290) | def test_on_event_invalid(self): method test_trigger_event (line 295) | def test_trigger_event(self): method test_trigger_legacy_disconnect_event (line 322) | def test_trigger_legacy_disconnect_event(self): method test_trigger_event_error (line 332) | def test_trigger_event_error(self): method test_session (line 348) | def test_session(self): method test_close_one_socket (line 357) | def test_close_one_socket(self): method test_close_all_sockets (line 365) | def test_close_all_sockets(self): method test_upgrades (line 376) | def test_upgrades(self): method test_transport (line 389) | def test_transport(self): method test_bad_session (line 398) | def test_bad_session(self): method test_closed_socket (line 404) | def test_closed_socket(self): method test_jsonp_with_bad_index (line 411) | def test_jsonp_with_bad_index(self): method test_jsonp_index (line 418) | def test_jsonp_index(self): method test_connect (line 427) | def test_connect(self): method test_connect_no_upgrades (line 450) | def test_connect_no_upgrades(self): method test_connect_bad_eio_version (line 458) | def test_connect_bad_eio_version(self): method test_connect_custom_ping_times (line 466) | def test_connect_custom_ping_times(self): method test_connect_bad_poll (line 480) | def test_connect_bad_poll(self, poll): method test_connect_transport_websocket (line 491) | def test_connect_transport_websocket(self, Socket): method test_http_upgrade_case_insensitive (line 509) | def test_http_upgrade_case_insensitive(self, Socket): method test_connect_transport_websocket_closed (line 527) | def test_connect_transport_websocket_closed(self, Socket): method test_connect_transport_invalid (line 544) | def test_connect_transport_invalid(self): method test_connect_transport_websocket_without_upgrade (line 552) | def test_connect_transport_websocket_without_upgrade(self): method test_connect_cors_headers (line 562) | def test_connect_cors_headers(self): method test_connect_cors_allowed_origin (line 571) | def test_connect_cors_allowed_origin(self): method test_connect_cors_allowed_origin_with_callable (line 584) | def test_connect_cors_allowed_origin_with_callable(self): method test_connect_cors_not_allowed_origin (line 604) | def test_connect_cors_not_allowed_origin(self): method test_connect_str_cors_headers_all_origins (line 618) | def test_connect_str_cors_headers_all_origins(self): method test_connect_list_cors_headers_all_origins (line 632) | def test_connect_list_cors_headers_all_origins(self): method test_connect_cors_headers_one_origin (line 646) | def test_connect_cors_headers_one_origin(self): method test_connect_cors_headers_one_origin_not_allowed (line 660) | def test_connect_cors_headers_one_origin_not_allowed(self): method test_connect_cors_headers_default_origin (line 674) | def test_connect_cors_headers_default_origin(self): method test_connect_cors_headers_default_origin_proxy_server (line 689) | def test_connect_cors_headers_default_origin_proxy_server(self): method test_connect_cors_headers_default_origin_proxy_server2 (line 705) | def test_connect_cors_headers_default_origin_proxy_server2(self): method test_connect_cors_no_credentials (line 722) | def test_connect_cors_no_credentials(self): method test_cors_options (line 731) | def test_cors_options(self): method test_cors_request_headers (line 743) | def test_cors_request_headers(self): method test_connect_cors_disabled (line 756) | def test_connect_cors_disabled(self): method test_connect_cors_default_no_origin (line 770) | def test_connect_cors_default_no_origin(self): method test_connect_str_cors_all_no_origin (line 779) | def test_connect_str_cors_all_no_origin(self): method test_connect_list_cors_all_no_origin (line 788) | def test_connect_list_cors_all_no_origin(self): method test_connect_cors_disabled_no_origin (line 797) | def test_connect_cors_disabled_no_origin(self): method test_connect_event (line 806) | def test_connect_event(self): method test_connect_event_rejects (line 817) | def test_connect_event_rejects(self): method test_connect_event_rejects_with_message (line 829) | def test_connect_event_rejects_with_message(self): method test_method_not_found (line 841) | def test_method_not_found(self): method test_get_request_with_bad_sid (line 848) | def test_get_request_with_bad_sid(self): method test_post_request_with_bad_sid (line 855) | def test_post_request_with_bad_sid(self): method test_send (line 862) | def test_send(self): method test_send_unknown_socket (line 871) | def test_send_unknown_socket(self): method test_get_request (line 876) | def test_get_request(self): method test_get_request_custom_response (line 892) | def test_get_request_custom_response(self): method test_get_request_closes_socket (line 901) | def test_get_request_closes_socket(self): method test_get_request_error (line 916) | def test_get_request_error(self): method test_get_request_bad_websocket_transport (line 929) | def test_get_request_bad_websocket_transport(self): method test_get_request_bad_polling_transport (line 940) | def test_get_request_bad_polling_transport(self): method test_post_request (line 951) | def test_post_request(self): method test_post_request_error (line 961) | def test_post_request_error(self): method _gzip_decompress (line 975) | def _gzip_decompress(b): method test_gzip_compression (line 980) | def test_gzip_compression(self): method test_deflate_compression (line 997) | def test_deflate_compression(self): method test_gzip_compression_threshold (line 1016) | def test_gzip_compression_threshold(self): method test_compression_disabled (line 1035) | def test_compression_disabled(self): method test_compression_unknown (line 1054) | def test_compression_unknown(self): method test_compression_no_encoding (line 1073) | def test_compression_no_encoding(self): method test_cookie (line 1092) | def test_cookie(self): method test_cookie_dict (line 1101) | def test_cookie_dict(self): method test_no_cookie (line 1119) | def test_no_cookie(self): method test_logger (line 1128) | def test_logger(self): method test_custom_json (line 1142) | def test_custom_json(self): method test_background_tasks (line 1164) | def test_background_tasks(self): method test_sleep (line 1176) | def test_sleep(self): method test_create_queue (line 1182) | def test_create_queue(self): method test_create_event (line 1189) | def test_create_event(self): method test_log_error_once (line 1196) | def test_log_error_once(self): method test_service_task_started (line 1205) | def test_service_task_started(self): method test_shutdown (line 1217) | def test_shutdown(self): method test_transports_invalid (line 1226) | def test_transports_invalid(self): method test_transports_disallowed (line 1232) | def test_transports_disallowed(self): FILE: tests/common/test_socket.py class TestSocket (line 13) | class TestSocket: method setup_method (line 14) | def setup_method(self): method _get_mock_server (line 17) | def _get_mock_server(self): method _join_bg_tasks (line 51) | def _join_bg_tasks(self): method test_create (line 55) | def test_create(self): method test_empty_poll (line 67) | def test_empty_poll(self): method test_poll (line 73) | def test_poll(self): method test_poll_none (line 82) | def test_poll_none(self): method test_poll_none_after_packet (line 88) | def test_poll_none_after_packet(self): method test_schedule_ping (line 97) | def test_schedule_ping(self): method test_schedule_ping_closed_socket (line 107) | def test_schedule_ping_closed_socket(self): method test_pong (line 118) | def test_pong(self): method test_message_async_handler (line 125) | def test_message_async_handler(self): method test_message_sync_handler (line 133) | def test_message_sync_handler(self): method test_invalid_packet (line 142) | def test_invalid_packet(self): method test_timeout (line 148) | def test_timeout(self): method test_polling_read (line 159) | def test_polling_read(self): method test_polling_read_error (line 171) | def test_polling_read_error(self): method test_polling_write (line 179) | def test_polling_write(self): method test_polling_write_too_large (line 196) | def test_polling_write_too_large(self): method test_upgrade_handshake (line 213) | def test_upgrade_handshake(self): method test_upgrade (line 227) | def test_upgrade(self): method test_upgrade_twice (line 242) | def test_upgrade_twice(self): method test_upgrade_packet (line 253) | def test_upgrade_packet(self): method test_upgrade_no_probe (line 262) | def test_upgrade_no_probe(self): method test_upgrade_no_upgrade_packet (line 271) | def test_upgrade_no_upgrade_packet(self): method test_close_packet (line 289) | def test_close_packet(self): method test_invalid_packet_type (line 299) | def test_invalid_packet_type(self): method test_upgrade_not_supported (line 306) | def test_upgrade_not_supported(self): method test_websocket_read_write (line 316) | def test_websocket_read_write(self): method test_websocket_upgrade_read_write (line 349) | def test_websocket_upgrade_read_write(self): method test_websocket_upgrade_with_payload (line 384) | def test_websocket_upgrade_with_payload(self): method test_websocket_upgrade_with_backlog (line 399) | def test_websocket_upgrade_with_backlog(self): method test_websocket_read_write_wait_fail (line 430) | def test_websocket_read_write_wait_fail(self): method test_websocket_upgrade_with_large_packet (line 454) | def test_websocket_upgrade_with_large_packet(self): method test_websocket_ignore_invalid_packet (line 470) | def test_websocket_ignore_invalid_packet(self): method test_send_after_close (line 503) | def test_send_after_close(self): method test_close_after_close (line 510) | def test_close_after_close(self): method test_close_and_wait (line 523) | def test_close_and_wait(self): method test_close_without_wait (line 530) | def test_close_without_wait(self): FILE: tests/performance/binary_b64_packet.py function test (line 5) | def test(): FILE: tests/performance/binary_packet.py function test (line 5) | def test(): FILE: tests/performance/json_packet.py function test (line 5) | def test(): FILE: tests/performance/payload.py function test (line 5) | def test(): FILE: tests/performance/server_receive.py function test (line 7) | def test(eio_version, payload): FILE: tests/performance/text_packet.py function test (line 5) | def test():