py$(PYV): remove tox env folder $(@D)/.tox/py$(PYV) py$(PYV): commands[0]> python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m unittest -v test_additional_headers (tests.asyncio.test_client.ClientTests) Client can set additional headers with additional_headers. ... ok test_compression_is_enabled (tests.asyncio.test_client.ClientTests) Client enables compression by default. ... ok test_connection (tests.asyncio.test_client.ClientTests) Client connects to server. ... ok test_connection_closed_during_handshake (tests.asyncio.test_client.ClientTests) Client reads EOF before receiving handshake response from server. ... ok test_cross_origin_redirect (tests.asyncio.test_client.ClientTests) Client follows redirect to a secure URI on a different origin. ... ok test_cross_origin_redirect_with_explicit_host_port (tests.asyncio.test_client.ClientTests) Client doesn't follow cross-origin redirect with an explicit host / port. ... ok test_custom_connection_factory (tests.asyncio.test_client.ClientTests) Client runs ClientConnection factory provided in create_connection. ... ok test_disable_compression (tests.asyncio.test_client.ClientTests) Client disables compression. ... ok test_disable_keepalive (tests.asyncio.test_client.ClientTests) Client disables keepalive. ... ok test_existing_socket (tests.asyncio.test_client.ClientTests) Client connects using a pre-existing socket. ... ok test_explicit_host_port (tests.asyncio.test_client.ClientTests) Client connects using an explicit host / port. ... ok test_handshake_fails (tests.asyncio.test_client.ClientTests) Client connects to server but the handshake fails. ... ok test_http_response (tests.asyncio.test_client.ClientTests) Client reads HTTP response. ... ok test_http_response_without_content_length (tests.asyncio.test_client.ClientTests) Client reads HTTP response without a Content-Length header. ... ok test_invalid_uri (tests.asyncio.test_client.ClientTests) Client receives an invalid URI. ... ok test_junk_handshake (tests.asyncio.test_client.ClientTests) Client closes the connection when receiving non-HTTP response from server. ... ok test_keepalive_is_enabled (tests.asyncio.test_client.ClientTests) Client enables keepalive and measures latency by default. ... ok test_logger (tests.asyncio.test_client.ClientTests) Client accepts a logger argument. ... ok test_override_user_agent (tests.asyncio.test_client.ClientTests) Client can override User-Agent header with user_agent_header. ... ok test_reconnect (tests.asyncio.test_client.ClientTests) Client reconnects to server. ... ok test_reconnect_with_custom_process_exception (tests.asyncio.test_client.ClientTests) Client runs process_exception to tell if errors are retryable or fatal. ... ok test_reconnect_with_custom_process_exception_raising_exception (tests.asyncio.test_client.ClientTests) Client supports raising an exception in process_exception. ... ok test_redirect (tests.asyncio.test_client.ClientTests) Client follows redirect. ... ok test_redirect_limit (tests.asyncio.test_client.ClientTests) Client stops following redirects after limit is reached. ... ok test_redirect_with_existing_socket (tests.asyncio.test_client.ClientTests) Client doesn't follow redirect when using a pre-existing socket. ... ok test_redirect_with_explicit_host_port (tests.asyncio.test_client.ClientTests) Client follows redirect with an explicit host / port. ... ok test_remove_user_agent (tests.asyncio.test_client.ClientTests) Client can remove User-Agent header with user_agent_header. ... ok test_tcp_connection_fails (tests.asyncio.test_client.ClientTests) Client fails to connect to server. ... ok test_timeout_during_handshake (tests.asyncio.test_client.ClientTests) Client times out before receiving handshake response from server. ... ok test_invalid_subprotocol (tests.asyncio.test_client.ClientUsageErrorsTests) Client rejects single value of subprotocols. ... ok test_secure_uri_without_ssl (tests.asyncio.test_client.ClientUsageErrorsTests) Client rejects no ssl when URI is secure. ... ok test_ssl_without_secure_uri (tests.asyncio.test_client.ClientUsageErrorsTests) Client rejects ssl when URI isn't secure. ... ok test_unix_with_path_and_sock (tests.asyncio.test_client.ClientUsageErrorsTests) Unix client rejects path when sock is provided. ... ok test_unix_without_path_or_sock (tests.asyncio.test_client.ClientUsageErrorsTests) Unix client requires path when sock isn't provided. ... ok test_unsupported_compression (tests.asyncio.test_client.ClientUsageErrorsTests) Client rejects incorrect value of compression. ... ok test_connection (tests.asyncio.test_client.SecureClientTests) Client connects to server securely. ... ok test_cross_origin_redirect (tests.asyncio.test_client.SecureClientTests) Client follows redirect to a secure URI on a different origin. ... ok test_redirect_to_insecure_uri (tests.asyncio.test_client.SecureClientTests) Client doesn't follow redirect from secure URI to non-secure URI. ... ok test_reject_invalid_server_certificate (tests.asyncio.test_client.SecureClientTests) Client rejects certificate where server certificate isn't trusted. ... ok test_reject_invalid_server_hostname (tests.asyncio.test_client.SecureClientTests) Client rejects certificate where server hostname doesn't match. ... ok test_set_server_hostname_explicitly (tests.asyncio.test_client.SecureClientTests) Client sets server_hostname to the value provided in argument. ... ok test_set_server_hostname_implicitly (tests.asyncio.test_client.SecureClientTests) Client sets server_hostname to the host in the WebSocket URI. ... ok test_connection (tests.asyncio.test_client.SecureUnixClientTests) Client connects to server securely over a Unix socket. ... ok test_set_server_hostname (tests.asyncio.test_client.SecureUnixClientTests) Client sets server_hostname to the host in the WebSocket URI. ... ok test_connection (tests.asyncio.test_client.UnixClientTests) Client connects to server over a Unix socket. ... ok test_cross_origin_redirect (tests.asyncio.test_client.UnixClientTests) Client doesn't follows redirect to a URI on a different origin. ... ok test_set_host_header (tests.asyncio.test_client.UnixClientTests) Client sets the Host header to the host in the WebSocket URI. ... ok test_acknowledge_ping (tests.asyncio.test_connection.ClientConnectionTests) ping is acknowledged by a pong with the same payload. ... ok test_acknowledge_ping_non_matching_pong (tests.asyncio.test_connection.ClientConnectionTests) ping isn't acknowledged by a pong with a different payload. ... ok test_acknowledge_previous_ping (tests.asyncio.test_connection.ClientConnectionTests) ping is acknowledged by a pong with the same payload as a later ping. ... ok test_aenter (tests.asyncio.test_connection.ClientConnectionTests) __aenter__ returns the connection itself. ... ok test_aexit (tests.asyncio.test_connection.ClientConnectionTests) __aexit__ closes the connection with code 1000. ... ok test_aiter_binary (tests.asyncio.test_connection.ClientConnectionTests) __aiter__ yields binary messages. ... ok test_aiter_connection_closed_error (tests.asyncio.test_connection.ClientConnectionTests) __aiter__ raises ConnectionClosedError after an error. ... ok test_aiter_connection_closed_ok (tests.asyncio.test_connection.ClientConnectionTests) __aiter__ terminates after a normal closure. ... ok test_aiter_mixed (tests.asyncio.test_connection.ClientConnectionTests) __aiter__ yields a mix of text and binary messages. ... ok test_aiter_text (tests.asyncio.test_connection.ClientConnectionTests) __aiter__ yields text messages. ... ok test_broadcast_binary (tests.asyncio.test_connection.ClientConnectionTests) broadcast broadcasts a binary message. ... ok test_broadcast_binary_reports_no_errors (tests.asyncio.test_connection.ClientConnectionTests) broadcast broadcasts a binary message without raising exceptions. ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_no_clients (tests.asyncio.test_connection.ClientConnectionTests) broadcast does nothing when called with an empty list of clients. ... ok test_broadcast_reports_connection_failing_to_send (tests.asyncio.test_connection.ClientConnectionTests) broadcast raises exceptions for connections failing to send. ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_reports_connection_with_send_blocked (tests.asyncio.test_connection.ClientConnectionTests) broadcast raises exceptions for connections blocked in send. ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_skips_closed_connection (tests.asyncio.test_connection.ClientConnectionTests) broadcast ignores closed connections. ... ok test_broadcast_skips_closing_connection (tests.asyncio.test_connection.ClientConnectionTests) broadcast ignores closing connections. ... ok test_broadcast_skips_connection_failing_to_send (tests.asyncio.test_connection.ClientConnectionTests) broadcast logs a warning when a connection fails to send. ... ok test_broadcast_skips_connection_with_send_blocked (tests.asyncio.test_connection.ClientConnectionTests) broadcast logs a warning when a connection is blocked in send. ... ok test_broadcast_text (tests.asyncio.test_connection.ClientConnectionTests) broadcast broadcasts a text message. ... ok test_broadcast_text_reports_no_errors (tests.asyncio.test_connection.ClientConnectionTests) broadcast broadcasts a text message without raising exceptions. ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_two_clients (tests.asyncio.test_connection.ClientConnectionTests) broadcast broadcasts a message to several clients. ... ok test_broadcast_type_error (tests.asyncio.test_connection.ClientConnectionTests) broadcast raises TypeError when called with an unsupported type. ... ok test_close (tests.asyncio.test_connection.ClientConnectionTests) close sends a close frame. ... ok test_close_code (tests.asyncio.test_connection.ClientConnectionTests) Connection has a close_code attribute. ... ok test_close_during_recv (tests.asyncio.test_connection.ClientConnectionTests) close aborts recv when called concurrently with recv. ... ok test_close_during_send (tests.asyncio.test_connection.ClientConnectionTests) close fails the connection when called concurrently with send. ... ok test_close_explicit_code_reason (tests.asyncio.test_connection.ClientConnectionTests) close sends a close frame with a given code and reason. ... ok test_close_idempotency (tests.asyncio.test_connection.ClientConnectionTests) close does nothing if the connection is already closed. ... ok test_close_no_timeout_waits_for_close_frame (tests.asyncio.test_connection.ClientConnectionTests) close without timeout waits for a close frame (then EOF) before returning. ... ok test_close_no_timeout_waits_for_connection_closed (tests.asyncio.test_connection.ClientConnectionTests) close without timeout waits for EOF before returning. ... ok test_close_preserves_queued_messages (tests.asyncio.test_connection.ClientConnectionTests) close preserves messages buffered in the assembler. ... ok test_close_reason (tests.asyncio.test_connection.ClientConnectionTests) Connection has a close_reason attribute. ... ok test_close_timeout (tests.asyncio.test_connection.ClientConnectionTests) close_timeout parameter configures close timeout. ... ok test_close_timeout_waiting_for_close_frame (tests.asyncio.test_connection.ClientConnectionTests) close times out if no close frame is received. ... ok test_close_timeout_waiting_for_connection_closed (tests.asyncio.test_connection.ClientConnectionTests) close times out if EOF isn't received. ... ok test_close_waits_for_close_frame (tests.asyncio.test_connection.ClientConnectionTests) close waits for a close frame (then EOF) before returning. ... ok test_close_waits_for_connection_closed (tests.asyncio.test_connection.ClientConnectionTests) close waits for EOF before returning. ... ok test_disable_keepalive (tests.asyncio.test_connection.ClientConnectionTests) keepalive is disabled when ping_interval is None. ... ok test_exit_with_exception (tests.asyncio.test_connection.ClientConnectionTests) __exit__ with an exception closes the connection with code 1011. ... ok test_id (tests.asyncio.test_connection.ClientConnectionTests) Connection has an id attribute. ... ok test_keepalive (tests.asyncio.test_connection.ClientConnectionTests) keepalive sends pings at ping_interval and measures latency. ... ok test_keepalive_ignores_timeout (tests.asyncio.test_connection.ClientConnectionTests) keepalive ignores timeouts if ping_timeout isn't set. ... ok test_keepalive_reports_errors (tests.asyncio.test_connection.ClientConnectionTests) keepalive reports unexpected errors in logs. ... ok test_keepalive_terminates_while_sleeping (tests.asyncio.test_connection.ClientConnectionTests) keepalive task terminates while waiting to send a ping. ... ok test_keepalive_terminates_while_waiting_for_pong (tests.asyncio.test_connection.ClientConnectionTests) keepalive task terminates while waiting to receive a pong. ... ok test_keepalive_times_out (tests.asyncio.test_connection.ClientConnectionTests) keepalive closes the connection if ping_timeout elapses. ... ok test_local_address (tests.asyncio.test_connection.ClientConnectionTests) Connection provides a local_address attribute. ... ok test_logger (tests.asyncio.test_connection.ClientConnectionTests) Connection has a logger attribute. ... ok test_max_queue (tests.asyncio.test_connection.ClientConnectionTests) max_queue configures high-water mark of frames buffer. ... ok test_max_queue_none (tests.asyncio.test_connection.ClientConnectionTests) max_queue disables high-water mark of frames buffer. ... ok test_max_queue_tuple (tests.asyncio.test_connection.ClientConnectionTests) max_queue configures high-water and low-water marks of frames buffer. ... ok test_ping (tests.asyncio.test_connection.ClientConnectionTests) ping sends a ping frame with a random payload. ... ok test_ping_duplicate_payload (tests.asyncio.test_connection.ClientConnectionTests) ping rejects the same payload until receiving the pong. ... ok test_ping_explicit_binary (tests.asyncio.test_connection.ClientConnectionTests) ping sends a ping frame with a payload provided as binary. ... ok test_ping_explicit_text (tests.asyncio.test_connection.ClientConnectionTests) ping sends a ping frame with a payload provided as text. ... ok test_ping_unsupported_type (tests.asyncio.test_connection.ClientConnectionTests) ping raises TypeError when called with an unsupported type. ... ok test_pong (tests.asyncio.test_connection.ClientConnectionTests) pong sends a pong frame. ... ok test_pong_explicit_binary (tests.asyncio.test_connection.ClientConnectionTests) pong sends a pong frame with a payload provided as binary. ... ok test_pong_explicit_text (tests.asyncio.test_connection.ClientConnectionTests) pong sends a pong frame with a payload provided as text. ... ok test_pong_unsupported_type (tests.asyncio.test_connection.ClientConnectionTests) pong raises TypeError when called with an unsupported type. ... ok test_recv_binary (tests.asyncio.test_connection.ClientConnectionTests) recv receives a binary message. ... ok test_recv_binary_as_text (tests.asyncio.test_connection.ClientConnectionTests) recv receives a binary message as a str. ... ok test_recv_cancellation_before_receiving (tests.asyncio.test_connection.ClientConnectionTests) recv can be cancelled before receiving a frame. ... ok test_recv_cancellation_while_receiving (tests.asyncio.test_connection.ClientConnectionTests) recv cannot be cancelled after receiving a frame. ... ok test_recv_connection_closed_error (tests.asyncio.test_connection.ClientConnectionTests) recv raises ConnectionClosedError after an error. ... ok test_recv_connection_closed_ok (tests.asyncio.test_connection.ClientConnectionTests) recv raises ConnectionClosedOK after a normal closure. ... ok test_recv_during_recv (tests.asyncio.test_connection.ClientConnectionTests) recv raises ConcurrencyError when called concurrently. ... ok test_recv_during_recv_streaming (tests.asyncio.test_connection.ClientConnectionTests) recv raises ConcurrencyError when called concurrently with recv_streaming. ... ok test_recv_fragmented_binary (tests.asyncio.test_connection.ClientConnectionTests) recv receives a fragmented binary message. ... ok test_recv_fragmented_text (tests.asyncio.test_connection.ClientConnectionTests) recv receives a fragmented text message. ... ok test_recv_non_utf8_text (tests.asyncio.test_connection.ClientConnectionTests) recv receives a non-UTF-8 text message. ... ok test_recv_streaming_binary (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming receives a binary message. ... ok test_recv_streaming_binary_as_str (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming receives a binary message as a str. ... ok test_recv_streaming_cancellation_before_receiving (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming can be cancelled before receiving a frame. ... ok test_recv_streaming_cancellation_while_receiving (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming cannot be cancelled after receiving a frame. ... ok test_recv_streaming_connection_closed_error (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming raises ConnectionClosedError after an error. ... ok test_recv_streaming_connection_closed_ok (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming raises ConnectionClosedOK after a normal closure. ... ok test_recv_streaming_during_recv (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming raises ConcurrencyError when called concurrently with recv. ... ok test_recv_streaming_during_recv_streaming (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming raises ConcurrencyError when called concurrently. ... ok test_recv_streaming_fragmented_binary (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming receives a fragmented binary message. ... ok test_recv_streaming_fragmented_text (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming receives a fragmented text message. ... ok test_recv_streaming_non_utf8_text (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming receives a non-UTF-8 text message. ... ok test_recv_streaming_text (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming receives a text message. ... ok test_recv_streaming_text_as_bytes (tests.asyncio.test_connection.ClientConnectionTests) recv_streaming receives a text message as bytes. ... ok test_recv_text (tests.asyncio.test_connection.ClientConnectionTests) recv receives a text message. ... ok test_recv_text_as_bytes (tests.asyncio.test_connection.ClientConnectionTests) recv receives a text message as bytes. ... ok test_remote_address (tests.asyncio.test_connection.ClientConnectionTests) Connection provides a remote_address attribute. ... ok test_request (tests.asyncio.test_connection.ClientConnectionTests) Connection has a request attribute. ... ok test_response (tests.asyncio.test_connection.ClientConnectionTests) Connection has a response attribute. ... ok test_send_async_fragmented_binary (tests.asyncio.test_connection.ClientConnectionTests) send sends a fragmented binary message asynchronously. ... ok test_send_async_fragmented_binary_from_str (tests.asyncio.test_connection.ClientConnectionTests) send sends a fragmented binary message from a str asynchronously. ... ok test_send_async_fragmented_text (tests.asyncio.test_connection.ClientConnectionTests) send sends a fragmented text message asynchronously. ... ok test_send_async_fragmented_text_from_bytes (tests.asyncio.test_connection.ClientConnectionTests) send sends a fragmented text message from bytes asynchronously. ... ok test_send_binary (tests.asyncio.test_connection.ClientConnectionTests) send sends a binary message. ... ok test_send_binary_from_str (tests.asyncio.test_connection.ClientConnectionTests) send sends a binary message from a str. ... ok test_send_connection_closed_error (tests.asyncio.test_connection.ClientConnectionTests) send raises ConnectionClosedError after an error. ... ok test_send_connection_closed_ok (tests.asyncio.test_connection.ClientConnectionTests) send raises ConnectionClosedOK after a normal closure. ... ok test_send_dict (tests.asyncio.test_connection.ClientConnectionTests) send raises TypeError when called with a dict. ... ok test_send_during_send_async (tests.asyncio.test_connection.ClientConnectionTests) send waits for a previous call to send to complete. ... ok test_send_empty_async_iterable (tests.asyncio.test_connection.ClientConnectionTests) send does nothing when called with an empty async iterable. ... ok test_send_empty_iterable (tests.asyncio.test_connection.ClientConnectionTests) send does nothing when called with an empty iterable. ... ok test_send_fragmented_binary (tests.asyncio.test_connection.ClientConnectionTests) send sends a fragmented binary message. ... ok test_send_fragmented_binary_from_str (tests.asyncio.test_connection.ClientConnectionTests) send sends a fragmented binary message from a str. ... ok test_send_fragmented_text (tests.asyncio.test_connection.ClientConnectionTests) send sends a fragmented text message. ... ok test_send_fragmented_text_from_bytes (tests.asyncio.test_connection.ClientConnectionTests) send sends a fragmented text message from bytes. ... ok test_send_mixed_async_iterable (tests.asyncio.test_connection.ClientConnectionTests) send raises TypeError when called with an iterable of inconsistent types. ... ok test_send_mixed_iterable (tests.asyncio.test_connection.ClientConnectionTests) send raises TypeError when called with an iterable of inconsistent types. ... ok test_send_text (tests.asyncio.test_connection.ClientConnectionTests) send sends a text message. ... ok test_send_text_from_bytes (tests.asyncio.test_connection.ClientConnectionTests) send sends a text message from bytes. ... ok test_send_unsupported_async_iterable (tests.asyncio.test_connection.ClientConnectionTests) send raises TypeError when called with an iterable of unsupported type. ... ok test_send_unsupported_iterable (tests.asyncio.test_connection.ClientConnectionTests) send raises TypeError when called with an iterable of unsupported type. ... ok test_send_unsupported_type (tests.asyncio.test_connection.ClientConnectionTests) send raises TypeError when called with an unsupported type. ... ok test_send_while_send_async_blocked (tests.asyncio.test_connection.ClientConnectionTests) send waits for a previous call to send to complete. ... ok test_send_while_send_blocked (tests.asyncio.test_connection.ClientConnectionTests) send waits for a previous call to send to complete. ... ok test_state (tests.asyncio.test_connection.ClientConnectionTests) Connection has a state attribute. ... ok test_subprotocol (tests.asyncio.test_connection.ClientConnectionTests) Connection has a subprotocol attribute. ... ok test_unexpected_failure_in_data_received (tests.asyncio.test_connection.ClientConnectionTests) Unexpected internal error in data_received() is correctly reported. ... ok test_unexpected_failure_in_send_context (tests.asyncio.test_connection.ClientConnectionTests) Unexpected internal error in send_context() is correctly reported. ... ok test_wait_closed (tests.asyncio.test_connection.ClientConnectionTests) wait_closed waits for the connection to close. ... ok test_write_limit (tests.asyncio.test_connection.ClientConnectionTests) write_limit parameter configures high-water mark of write buffer. ... ok test_write_limits (tests.asyncio.test_connection.ClientConnectionTests) write_limit parameter configures high and low-water marks of write buffer. ... ok test_writing_in_data_received_fails (tests.asyncio.test_connection.ClientConnectionTests) Error when responding to incoming frames is correctly reported. ... ok test_writing_in_send_context_fails (tests.asyncio.test_connection.ClientConnectionTests) Error when sending outgoing frame is correctly reported. ... ok test_acknowledge_ping (tests.asyncio.test_connection.ServerConnectionTests) ping is acknowledged by a pong with the same payload. ... ok test_acknowledge_ping_non_matching_pong (tests.asyncio.test_connection.ServerConnectionTests) ping isn't acknowledged by a pong with a different payload. ... ok test_acknowledge_previous_ping (tests.asyncio.test_connection.ServerConnectionTests) ping is acknowledged by a pong with the same payload as a later ping. ... ok test_aenter (tests.asyncio.test_connection.ServerConnectionTests) __aenter__ returns the connection itself. ... ok test_aexit (tests.asyncio.test_connection.ServerConnectionTests) __aexit__ closes the connection with code 1000. ... ok test_aiter_binary (tests.asyncio.test_connection.ServerConnectionTests) __aiter__ yields binary messages. ... ok test_aiter_connection_closed_error (tests.asyncio.test_connection.ServerConnectionTests) __aiter__ raises ConnectionClosedError after an error. ... ok test_aiter_connection_closed_ok (tests.asyncio.test_connection.ServerConnectionTests) __aiter__ terminates after a normal closure. ... ok test_aiter_mixed (tests.asyncio.test_connection.ServerConnectionTests) __aiter__ yields a mix of text and binary messages. ... ok test_aiter_text (tests.asyncio.test_connection.ServerConnectionTests) __aiter__ yields text messages. ... ok test_broadcast_binary (tests.asyncio.test_connection.ServerConnectionTests) broadcast broadcasts a binary message. ... ok test_broadcast_binary_reports_no_errors (tests.asyncio.test_connection.ServerConnectionTests) broadcast broadcasts a binary message without raising exceptions. ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_no_clients (tests.asyncio.test_connection.ServerConnectionTests) broadcast does nothing when called with an empty list of clients. ... ok test_broadcast_reports_connection_failing_to_send (tests.asyncio.test_connection.ServerConnectionTests) broadcast raises exceptions for connections failing to send. ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_reports_connection_with_send_blocked (tests.asyncio.test_connection.ServerConnectionTests) broadcast raises exceptions for connections blocked in send. ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_skips_closed_connection (tests.asyncio.test_connection.ServerConnectionTests) broadcast ignores closed connections. ... ok test_broadcast_skips_closing_connection (tests.asyncio.test_connection.ServerConnectionTests) broadcast ignores closing connections. ... ok test_broadcast_skips_connection_failing_to_send (tests.asyncio.test_connection.ServerConnectionTests) broadcast logs a warning when a connection fails to send. ... ok test_broadcast_skips_connection_with_send_blocked (tests.asyncio.test_connection.ServerConnectionTests) broadcast logs a warning when a connection is blocked in send. ... ok test_broadcast_text (tests.asyncio.test_connection.ServerConnectionTests) broadcast broadcasts a text message. ... ok test_broadcast_text_reports_no_errors (tests.asyncio.test_connection.ServerConnectionTests) broadcast broadcasts a text message without raising exceptions. ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_two_clients (tests.asyncio.test_connection.ServerConnectionTests) broadcast broadcasts a message to several clients. ... ok test_broadcast_type_error (tests.asyncio.test_connection.ServerConnectionTests) broadcast raises TypeError when called with an unsupported type. ... ok test_close (tests.asyncio.test_connection.ServerConnectionTests) close sends a close frame. ... ok test_close_code (tests.asyncio.test_connection.ServerConnectionTests) Connection has a close_code attribute. ... ok test_close_during_recv (tests.asyncio.test_connection.ServerConnectionTests) close aborts recv when called concurrently with recv. ... ok test_close_during_send (tests.asyncio.test_connection.ServerConnectionTests) close fails the connection when called concurrently with send. ... ok test_close_explicit_code_reason (tests.asyncio.test_connection.ServerConnectionTests) close sends a close frame with a given code and reason. ... ok test_close_idempotency (tests.asyncio.test_connection.ServerConnectionTests) close does nothing if the connection is already closed. ... ok test_close_no_timeout_waits_for_close_frame (tests.asyncio.test_connection.ServerConnectionTests) close without timeout waits for a close frame (then EOF) before returning. ... ok test_close_no_timeout_waits_for_connection_closed (tests.asyncio.test_connection.ServerConnectionTests) close without timeout waits for EOF before returning. ... skipped 'only relevant on the client-side' test_close_preserves_queued_messages (tests.asyncio.test_connection.ServerConnectionTests) close preserves messages buffered in the assembler. ... ok test_close_reason (tests.asyncio.test_connection.ServerConnectionTests) Connection has a close_reason attribute. ... ok test_close_timeout (tests.asyncio.test_connection.ServerConnectionTests) close_timeout parameter configures close timeout. ... ok test_close_timeout_waiting_for_close_frame (tests.asyncio.test_connection.ServerConnectionTests) close times out if no close frame is received. ... ok test_close_timeout_waiting_for_connection_closed (tests.asyncio.test_connection.ServerConnectionTests) close times out if EOF isn't received. ... skipped 'only relevant on the client-side' test_close_waits_for_close_frame (tests.asyncio.test_connection.ServerConnectionTests) close waits for a close frame (then EOF) before returning. ... ok test_close_waits_for_connection_closed (tests.asyncio.test_connection.ServerConnectionTests) close waits for EOF before returning. ... skipped 'only relevant on the client-side' test_disable_keepalive (tests.asyncio.test_connection.ServerConnectionTests) keepalive is disabled when ping_interval is None. ... ok test_exit_with_exception (tests.asyncio.test_connection.ServerConnectionTests) __exit__ with an exception closes the connection with code 1011. ... ok test_id (tests.asyncio.test_connection.ServerConnectionTests) Connection has an id attribute. ... ok test_keepalive (tests.asyncio.test_connection.ServerConnectionTests) keepalive sends pings at ping_interval and measures latency. ... ok test_keepalive_ignores_timeout (tests.asyncio.test_connection.ServerConnectionTests) keepalive ignores timeouts if ping_timeout isn't set. ... ok test_keepalive_reports_errors (tests.asyncio.test_connection.ServerConnectionTests) keepalive reports unexpected errors in logs. ... ok test_keepalive_terminates_while_sleeping (tests.asyncio.test_connection.ServerConnectionTests) keepalive task terminates while waiting to send a ping. ... ok test_keepalive_terminates_while_waiting_for_pong (tests.asyncio.test_connection.ServerConnectionTests) keepalive task terminates while waiting to receive a pong. ... ok test_keepalive_times_out (tests.asyncio.test_connection.ServerConnectionTests) keepalive closes the connection if ping_timeout elapses. ... ok test_local_address (tests.asyncio.test_connection.ServerConnectionTests) Connection provides a local_address attribute. ... ok test_logger (tests.asyncio.test_connection.ServerConnectionTests) Connection has a logger attribute. ... ok test_max_queue (tests.asyncio.test_connection.ServerConnectionTests) max_queue configures high-water mark of frames buffer. ... ok test_max_queue_none (tests.asyncio.test_connection.ServerConnectionTests) max_queue disables high-water mark of frames buffer. ... ok test_max_queue_tuple (tests.asyncio.test_connection.ServerConnectionTests) max_queue configures high-water and low-water marks of frames buffer. ... ok test_ping (tests.asyncio.test_connection.ServerConnectionTests) ping sends a ping frame with a random payload. ... ok test_ping_duplicate_payload (tests.asyncio.test_connection.ServerConnectionTests) ping rejects the same payload until receiving the pong. ... ok test_ping_explicit_binary (tests.asyncio.test_connection.ServerConnectionTests) ping sends a ping frame with a payload provided as binary. ... ok test_ping_explicit_text (tests.asyncio.test_connection.ServerConnectionTests) ping sends a ping frame with a payload provided as text. ... ok test_ping_unsupported_type (tests.asyncio.test_connection.ServerConnectionTests) ping raises TypeError when called with an unsupported type. ... ok test_pong (tests.asyncio.test_connection.ServerConnectionTests) pong sends a pong frame. ... ok test_pong_explicit_binary (tests.asyncio.test_connection.ServerConnectionTests) pong sends a pong frame with a payload provided as binary. ... ok test_pong_explicit_text (tests.asyncio.test_connection.ServerConnectionTests) pong sends a pong frame with a payload provided as text. ... ok test_pong_unsupported_type (tests.asyncio.test_connection.ServerConnectionTests) pong raises TypeError when called with an unsupported type. ... ok test_recv_binary (tests.asyncio.test_connection.ServerConnectionTests) recv receives a binary message. ... ok test_recv_binary_as_text (tests.asyncio.test_connection.ServerConnectionTests) recv receives a binary message as a str. ... ok test_recv_cancellation_before_receiving (tests.asyncio.test_connection.ServerConnectionTests) recv can be cancelled before receiving a frame. ... ok test_recv_cancellation_while_receiving (tests.asyncio.test_connection.ServerConnectionTests) recv cannot be cancelled after receiving a frame. ... ok test_recv_connection_closed_error (tests.asyncio.test_connection.ServerConnectionTests) recv raises ConnectionClosedError after an error. ... ok test_recv_connection_closed_ok (tests.asyncio.test_connection.ServerConnectionTests) recv raises ConnectionClosedOK after a normal closure. ... ok test_recv_during_recv (tests.asyncio.test_connection.ServerConnectionTests) recv raises ConcurrencyError when called concurrently. ... ok test_recv_during_recv_streaming (tests.asyncio.test_connection.ServerConnectionTests) recv raises ConcurrencyError when called concurrently with recv_streaming. ... ok test_recv_fragmented_binary (tests.asyncio.test_connection.ServerConnectionTests) recv receives a fragmented binary message. ... ok test_recv_fragmented_text (tests.asyncio.test_connection.ServerConnectionTests) recv receives a fragmented text message. ... ok test_recv_non_utf8_text (tests.asyncio.test_connection.ServerConnectionTests) recv receives a non-UTF-8 text message. ... ok test_recv_streaming_binary (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming receives a binary message. ... ok test_recv_streaming_binary_as_str (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming receives a binary message as a str. ... ok test_recv_streaming_cancellation_before_receiving (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming can be cancelled before receiving a frame. ... ok test_recv_streaming_cancellation_while_receiving (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming cannot be cancelled after receiving a frame. ... ok test_recv_streaming_connection_closed_error (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming raises ConnectionClosedError after an error. ... ok test_recv_streaming_connection_closed_ok (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming raises ConnectionClosedOK after a normal closure. ... ok test_recv_streaming_during_recv (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming raises ConcurrencyError when called concurrently with recv. ... ok test_recv_streaming_during_recv_streaming (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming raises ConcurrencyError when called concurrently. ... ok test_recv_streaming_fragmented_binary (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming receives a fragmented binary message. ... ok test_recv_streaming_fragmented_text (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming receives a fragmented text message. ... ok test_recv_streaming_non_utf8_text (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming receives a non-UTF-8 text message. ... ok test_recv_streaming_text (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming receives a text message. ... ok test_recv_streaming_text_as_bytes (tests.asyncio.test_connection.ServerConnectionTests) recv_streaming receives a text message as bytes. ... ok test_recv_text (tests.asyncio.test_connection.ServerConnectionTests) recv receives a text message. ... ok test_recv_text_as_bytes (tests.asyncio.test_connection.ServerConnectionTests) recv receives a text message as bytes. ... ok test_remote_address (tests.asyncio.test_connection.ServerConnectionTests) Connection provides a remote_address attribute. ... ok test_request (tests.asyncio.test_connection.ServerConnectionTests) Connection has a request attribute. ... ok test_response (tests.asyncio.test_connection.ServerConnectionTests) Connection has a response attribute. ... ok test_send_async_fragmented_binary (tests.asyncio.test_connection.ServerConnectionTests) send sends a fragmented binary message asynchronously. ... ok test_send_async_fragmented_binary_from_str (tests.asyncio.test_connection.ServerConnectionTests) send sends a fragmented binary message from a str asynchronously. ... ok test_send_async_fragmented_text (tests.asyncio.test_connection.ServerConnectionTests) send sends a fragmented text message asynchronously. ... ok test_send_async_fragmented_text_from_bytes (tests.asyncio.test_connection.ServerConnectionTests) send sends a fragmented text message from bytes asynchronously. ... ok test_send_binary (tests.asyncio.test_connection.ServerConnectionTests) send sends a binary message. ... ok test_send_binary_from_str (tests.asyncio.test_connection.ServerConnectionTests) send sends a binary message from a str. ... ok test_send_connection_closed_error (tests.asyncio.test_connection.ServerConnectionTests) send raises ConnectionClosedError after an error. ... ok test_send_connection_closed_ok (tests.asyncio.test_connection.ServerConnectionTests) send raises ConnectionClosedOK after a normal closure. ... ok test_send_dict (tests.asyncio.test_connection.ServerConnectionTests) send raises TypeError when called with a dict. ... ok test_send_during_send_async (tests.asyncio.test_connection.ServerConnectionTests) send waits for a previous call to send to complete. ... ok test_send_empty_async_iterable (tests.asyncio.test_connection.ServerConnectionTests) send does nothing when called with an empty async iterable. ... ok test_send_empty_iterable (tests.asyncio.test_connection.ServerConnectionTests) send does nothing when called with an empty iterable. ... ok test_send_fragmented_binary (tests.asyncio.test_connection.ServerConnectionTests) send sends a fragmented binary message. ... ok test_send_fragmented_binary_from_str (tests.asyncio.test_connection.ServerConnectionTests) send sends a fragmented binary message from a str. ... ok test_send_fragmented_text (tests.asyncio.test_connection.ServerConnectionTests) send sends a fragmented text message. ... ok test_send_fragmented_text_from_bytes (tests.asyncio.test_connection.ServerConnectionTests) send sends a fragmented text message from bytes. ... ok test_send_mixed_async_iterable (tests.asyncio.test_connection.ServerConnectionTests) send raises TypeError when called with an iterable of inconsistent types. ... ok test_send_mixed_iterable (tests.asyncio.test_connection.ServerConnectionTests) send raises TypeError when called with an iterable of inconsistent types. ... ok test_send_text (tests.asyncio.test_connection.ServerConnectionTests) send sends a text message. ... ok test_send_text_from_bytes (tests.asyncio.test_connection.ServerConnectionTests) send sends a text message from bytes. ... ok test_send_unsupported_async_iterable (tests.asyncio.test_connection.ServerConnectionTests) send raises TypeError when called with an iterable of unsupported type. ... ok test_send_unsupported_iterable (tests.asyncio.test_connection.ServerConnectionTests) send raises TypeError when called with an iterable of unsupported type. ... ok test_send_unsupported_type (tests.asyncio.test_connection.ServerConnectionTests) send raises TypeError when called with an unsupported type. ... ok test_send_while_send_async_blocked (tests.asyncio.test_connection.ServerConnectionTests) send waits for a previous call to send to complete. ... ok test_send_while_send_blocked (tests.asyncio.test_connection.ServerConnectionTests) send waits for a previous call to send to complete. ... ok test_state (tests.asyncio.test_connection.ServerConnectionTests) Connection has a state attribute. ... ok test_subprotocol (tests.asyncio.test_connection.ServerConnectionTests) Connection has a subprotocol attribute. ... ok test_unexpected_failure_in_data_received (tests.asyncio.test_connection.ServerConnectionTests) Unexpected internal error in data_received() is correctly reported. ... ok test_unexpected_failure_in_send_context (tests.asyncio.test_connection.ServerConnectionTests) Unexpected internal error in send_context() is correctly reported. ... ok test_wait_closed (tests.asyncio.test_connection.ServerConnectionTests) wait_closed waits for the connection to close. ... ok test_write_limit (tests.asyncio.test_connection.ServerConnectionTests) write_limit parameter configures high-water mark of write buffer. ... ok test_write_limits (tests.asyncio.test_connection.ServerConnectionTests) write_limit parameter configures high and low-water marks of write buffer. ... ok test_writing_in_data_received_fails (tests.asyncio.test_connection.ServerConnectionTests) Error when responding to incoming frames is correctly reported. ... ok test_writing_in_send_context_fails (tests.asyncio.test_connection.ServerConnectionTests) Error when sending outgoing frame is correctly reported. ... ok test_cancel_get_after_first_frame (tests.asyncio.test_messages.AssemblerTests) get can be canceled safely after reading the first frame. ... ok test_cancel_get_before_first_frame (tests.asyncio.test_messages.AssemblerTests) get can be canceled safely before reading the first frame. ... ok test_cancel_get_iter_after_first_frame (tests.asyncio.test_messages.AssemblerTests) get_iter cannot be canceled after reading the first frame. ... ok test_cancel_get_iter_before_first_frame (tests.asyncio.test_messages.AssemblerTests) get_iter can be canceled safely before reading the first frame. ... ok test_close_is_idempotent (tests.asyncio.test_messages.AssemblerTests) close can be called multiple times safely. ... ok test_get_binary_message_already_received (tests.asyncio.test_messages.AssemblerTests) get returns a binary message that is already received. ... ok test_get_binary_message_not_received_yet (tests.asyncio.test_messages.AssemblerTests) get returns a binary message when it is received. ... ok test_get_decoded_binary_message (tests.asyncio.test_messages.AssemblerTests) get returns a binary message with UTF-8 decoding. ... ok test_get_does_not_resume_reading (tests.asyncio.test_messages.AssemblerTests) get does not resume reading when the low-water mark is unset. ... ok test_get_encoded_text_message (tests.asyncio.test_messages.AssemblerTests) get returns a text message without UTF-8 decoding. ... ok test_get_fails_after_close (tests.asyncio.test_messages.AssemblerTests) get raises EOFError after close is called. ... ok test_get_fails_when_get_is_running (tests.asyncio.test_messages.AssemblerTests) get cannot be called concurrently. ... ok test_get_fails_when_get_iter_is_running (tests.asyncio.test_messages.AssemblerTests) get cannot be called concurrently with get_iter. ... ok test_get_fails_when_interrupted_by_close (tests.asyncio.test_messages.AssemblerTests) get raises EOFError when close is called. ... ok test_get_fragmented_binary_message_already_received (tests.asyncio.test_messages.AssemblerTests) get reassembles a fragmented binary message that is already received. ... ok test_get_fragmented_binary_message_being_received (tests.asyncio.test_messages.AssemblerTests) get reassembles a fragmented binary message that is partially received. ... ok test_get_fragmented_binary_message_not_received_yet (tests.asyncio.test_messages.AssemblerTests) get reassembles a fragmented binary message when it is received. ... ok test_get_fragmented_text_message_already_received (tests.asyncio.test_messages.AssemblerTests) get reassembles a fragmented a text message that is already received. ... ok test_get_fragmented_text_message_being_received (tests.asyncio.test_messages.AssemblerTests) get reassembles a fragmented text message that is partially received. ... ok test_get_fragmented_text_message_not_received_yet (tests.asyncio.test_messages.AssemblerTests) get reassembles a fragmented text message when it is received. ... ok test_get_iter_binary_message_already_received (tests.asyncio.test_messages.AssemblerTests) get_iter yields a binary message that is already received. ... ok test_get_iter_binary_message_not_received_yet (tests.asyncio.test_messages.AssemblerTests) get_iter yields a binary message when it is received. ... ok test_get_iter_decoded_binary_message (tests.asyncio.test_messages.AssemblerTests) get_iter yields a binary message with UTF-8 decoding. ... ok test_get_iter_does_not_resume_reading (tests.asyncio.test_messages.AssemblerTests) get_iter does not resume reading when the low-water mark is unset. ... ok test_get_iter_encoded_text_message (tests.asyncio.test_messages.AssemblerTests) get_iter yields a text message without UTF-8 decoding. ... ok test_get_iter_fails_after_close (tests.asyncio.test_messages.AssemblerTests) get_iter raises EOFError after close is called. ... ok test_get_iter_fails_when_get_is_running (tests.asyncio.test_messages.AssemblerTests) get_iter cannot be called concurrently with get. ... ok test_get_iter_fails_when_get_iter_is_running (tests.asyncio.test_messages.AssemblerTests) get_iter cannot be called concurrently. ... ok test_get_iter_fails_when_interrupted_by_close (tests.asyncio.test_messages.AssemblerTests) get_iter raises EOFError when close is called. ... ok test_get_iter_fragmented_binary_message_already_received (tests.asyncio.test_messages.AssemblerTests) get_iter yields a fragmented binary message that is already received. ... ok test_get_iter_fragmented_binary_message_being_received (tests.asyncio.test_messages.AssemblerTests) get_iter yields a fragmented binary message that is partially received. ... ok test_get_iter_fragmented_binary_message_not_received_yet (tests.asyncio.test_messages.AssemblerTests) get_iter yields a fragmented binary message when it is received. ... ok test_get_iter_fragmented_text_message_already_received (tests.asyncio.test_messages.AssemblerTests) get_iter yields a fragmented text message that is already received. ... ok test_get_iter_fragmented_text_message_being_received (tests.asyncio.test_messages.AssemblerTests) get_iter yields a fragmented text message that is partially received. ... ok test_get_iter_fragmented_text_message_not_received_yet (tests.asyncio.test_messages.AssemblerTests) get_iter yields a fragmented text message when it is received. ... ok test_get_iter_partially_queued_fragmented_message_after_close (tests.asyncio.test_messages.AssemblerTests) get_iter yields a partial fragmented message after close is called. ... ok test_get_iter_queued_fragmented_message_after_close (tests.asyncio.test_messages.AssemblerTests) get_iter yields a fragmented message after close is called. ... ok test_get_iter_queued_message_after_close (tests.asyncio.test_messages.AssemblerTests) get_iter yields a message after close is called. ... ok test_get_iter_resumes_reading (tests.asyncio.test_messages.AssemblerTests) get_iter resumes reading when queue goes below the low-water mark. ... ok test_get_iter_text_message_already_received (tests.asyncio.test_messages.AssemblerTests) get_iter yields a text message that is already received. ... ok test_get_iter_text_message_not_received_yet (tests.asyncio.test_messages.AssemblerTests) get_iter yields a text message when it is received. ... ok test_get_partially_queued_fragmented_message_after_close (tests.asyncio.test_messages.AssemblerTests) get raises EOF on a partial fragmented message after close is called. ... ok test_get_queued_fragmented_message_after_close (tests.asyncio.test_messages.AssemblerTests) get reassembles a fragmented message after close is called. ... ok test_get_queued_message_after_close (tests.asyncio.test_messages.AssemblerTests) get returns a message after close is called. ... ok test_get_resumes_reading (tests.asyncio.test_messages.AssemblerTests) get resumes reading when queue goes below the low-water mark. ... ok test_get_text_message_already_received (tests.asyncio.test_messages.AssemblerTests) get returns a text message that is already received. ... ok test_get_text_message_not_received_yet (tests.asyncio.test_messages.AssemblerTests) get returns a text message when it is received. ... ok test_put_does_not_pause_reading (tests.asyncio.test_messages.AssemblerTests) put does not pause reading when the high-water mark is unset. ... ok test_put_fails_after_close (tests.asyncio.test_messages.AssemblerTests) put raises EOFError after close is called. ... ok test_put_pauses_reading (tests.asyncio.test_messages.AssemblerTests) put pauses reading when queue goes above the high-water mark. ... ok test_set_high_and_low_water_marks (tests.asyncio.test_messages.AssemblerTests) high and low set the high-water and low-water marks. ... ok test_set_high_water_mark (tests.asyncio.test_messages.AssemblerTests) high sets the high-water and low-water marks. ... ok test_set_invalid_high_water_mark (tests.asyncio.test_messages.AssemblerTests) high must be a non-negative integer. ... ok test_set_invalid_low_water_mark (tests.asyncio.test_messages.AssemblerTests) low must be higher than high. ... ok test_set_low_water_mark (tests.asyncio.test_messages.AssemblerTests) low sets the low-water and high-water marks. ... ok test_unset_high_and_low_water_marks (tests.asyncio.test_messages.AssemblerTests) High-water and low-water marks are unset. ... ok test_abort (tests.asyncio.test_messages.SimpleQueueTests) abort throws an exception in get. ... ok test_get_then_put (tests.asyncio.test_messages.SimpleQueueTests) get returns an item when it is put. ... ok test_len (tests.asyncio.test_messages.SimpleQueueTests) __len__ returns queue length. ... ok test_put_then_get (tests.asyncio.test_messages.SimpleQueueTests) get returns an item that is already put. ... ok test_reset (tests.asyncio.test_messages.SimpleQueueTests) reset sets the content of the queue. ... ok test_authorization_with_incorrect_password (tests.asyncio.test_server.BasicAuthTests) basic_auth rejects client with incorrect password. ... ok test_authorization_with_unknown_username (tests.asyncio.test_server.BasicAuthTests) basic_auth rejects client with unknown username. ... ok test_bad_credentials (tests.asyncio.test_server.BasicAuthTests) basic_auth receives an unsupported credentials argument. ... ok test_bad_list_of_credentials (tests.asyncio.test_server.BasicAuthTests) basic_auth receives an unsupported credentials argument. ... ok test_check_credentials_coroutine (tests.asyncio.test_server.BasicAuthTests) basic_auth accepts a check_credentials coroutine. ... ok test_check_credentials_function (tests.asyncio.test_server.BasicAuthTests) basic_auth accepts a check_credentials function. ... ok test_list_of_credentials (tests.asyncio.test_server.BasicAuthTests) basic_auth accepts a list of hard coded credentials. ... ok test_missing_authorization (tests.asyncio.test_server.BasicAuthTests) basic_auth rejects client without credentials. ... ok test_unsupported_authorization (tests.asyncio.test_server.BasicAuthTests) basic_auth rejects client with unsupported credentials. ... ok test_valid_authorization (tests.asyncio.test_server.BasicAuthTests) basic_auth authenticates client with HTTP Basic Authentication. ... ok test_with_credentials_and_check_credentials (tests.asyncio.test_server.BasicAuthTests) basic_auth requires only one of credentials and check_credentials. ... ok test_without_credentials_or_check_credentials (tests.asyncio.test_server.BasicAuthTests) basic_auth requires either credentials or check_credentials. ... ok test_connection (tests.asyncio.test_server.SecureServerTests) Server receives secure connection from client. ... ok test_connection_closed_during_tls_handshake (tests.asyncio.test_server.SecureServerTests) Server reads EOF before receiving TLS handshake request from client. ... ok test_timeout_during_tls_handshake (tests.asyncio.test_server.SecureServerTests) Server times out before receiving TLS handshake request from client. ... ok test_connection (tests.asyncio.test_server.SecureUnixServerTests) Server receives secure connection from client over a Unix socket. ... ok test_async_process_request_raises_exception (tests.asyncio.test_server.ServerTests) Server returns an error if async process_request raises an exception. ... ok test_async_process_request_returns_none (tests.asyncio.test_server.ServerTests) Server runs async process_request and continues the handshake. ... ok test_async_process_request_returns_response (tests.asyncio.test_server.ServerTests) Server aborts handshake if async process_request returns a response. ... ok test_async_process_response_modifies_response (tests.asyncio.test_server.ServerTests) Server runs async process_response and modifies the handshake response. ... ok test_async_process_response_raises_exception (tests.asyncio.test_server.ServerTests) Server returns an error if async process_response raises an exception. ... ok test_async_process_response_replaces_response (tests.asyncio.test_server.ServerTests) Server runs async process_response and replaces the handshake response. ... ok test_async_process_response_returns_none (tests.asyncio.test_server.ServerTests) Server runs async process_response but keeps the handshake response. ... ok test_close_server_closes_open_connections (tests.asyncio.test_server.ServerTests) Server closes open connections with close code 1001 when closing. ... ok test_close_server_keeps_connections_open (tests.asyncio.test_server.ServerTests) Server waits for client to close open connections when closing. ... ok test_close_server_keeps_handlers_running (tests.asyncio.test_server.ServerTests) Server waits for connection handlers to terminate. ... ok test_close_server_rejects_connecting_connections (tests.asyncio.test_server.ServerTests) Server rejects connecting connections with HTTP 503 when closing. ... ok test_compression_is_enabled (tests.asyncio.test_server.ServerTests) Server enables compression by default. ... ok test_connection (tests.asyncio.test_server.ServerTests) Server receives connection from client and the handshake succeeds. ... ok test_connection_closed_during_handshake (tests.asyncio.test_server.ServerTests) Server reads EOF before receiving handshake request from client. ... ok test_connection_handler_raises_exception (tests.asyncio.test_server.ServerTests) Connection handler raises an exception. ... ok test_connection_handler_returns (tests.asyncio.test_server.ServerTests) Connection handler returns. ... ok test_connections (tests.asyncio.test_server.ServerTests) Server provides a connections property. ... ok test_custom_connection_factory (tests.asyncio.test_server.ServerTests) Server runs ServerConnection factory provided in create_connection. ... ok test_disable_compression (tests.asyncio.test_server.ServerTests) Server disables compression. ... ok test_disable_keepalive (tests.asyncio.test_server.ServerTests) Server disables keepalive. ... ok test_existing_socket (tests.asyncio.test_server.ServerTests) Server receives connection using a pre-existing socket. ... ok test_handshake_fails (tests.asyncio.test_server.ServerTests) Server receives connection from client but the handshake fails. ... ok test_junk_handshake (tests.asyncio.test_server.ServerTests) Server closes the connection when receiving non-HTTP request from client. ... ok test_keepalive_is_enabled (tests.asyncio.test_server.ServerTests) Server enables keepalive and measures latency. ... ok test_logger (tests.asyncio.test_server.ServerTests) Server accepts a logger argument. ... ok test_override_server (tests.asyncio.test_server.ServerTests) Server can override Server header with server_header. ... ok test_process_request_raises_exception (tests.asyncio.test_server.ServerTests) Server returns an error if process_request raises an exception. ... ok test_process_request_returns_none (tests.asyncio.test_server.ServerTests) Server runs process_request and continues the handshake. ... ok test_process_request_returns_response (tests.asyncio.test_server.ServerTests) Server aborts handshake if process_request returns a response. ... ok test_process_response_modifies_response (tests.asyncio.test_server.ServerTests) Server runs process_response and modifies the handshake response. ... ok test_process_response_raises_exception (tests.asyncio.test_server.ServerTests) Server returns an error if process_response raises an exception. ... ok test_process_response_replaces_response (tests.asyncio.test_server.ServerTests) Server runs process_response and replaces the handshake response. ... ok test_process_response_returns_none (tests.asyncio.test_server.ServerTests) Server runs process_response but keeps the handshake response. ... ok test_remove_server (tests.asyncio.test_server.ServerTests) Server can remove Server header with server_header. ... ok test_select_subprotocol (tests.asyncio.test_server.ServerTests) Server selects a subprotocol with the select_subprotocol callable. ... ok test_select_subprotocol_raises_exception (tests.asyncio.test_server.ServerTests) Server returns an error if select_subprotocol raises an exception. ... ok test_select_subprotocol_rejects_handshake (tests.asyncio.test_server.ServerTests) Server rejects handshake if select_subprotocol raises NegotiationError. ... ok test_timeout_during_handshake (tests.asyncio.test_server.ServerTests) Server times out before receiving handshake request from client. ... ok test_invalid_subprotocol (tests.asyncio.test_server.ServerUsageErrorsTests) Server rejects single value of subprotocols. ... ok test_unix_with_path_and_sock (tests.asyncio.test_server.ServerUsageErrorsTests) Unix server rejects path when sock is provided. ... ok test_unix_without_path_or_sock (tests.asyncio.test_server.ServerUsageErrorsTests) Unix server requires path when sock isn't provided. ... ok test_unsupported_compression (tests.asyncio.test_server.ServerUsageErrorsTests) Server rejects incorrect value of compression. ... ok test_connection (tests.asyncio.test_server.UnixServerTests) Server receives connection from client over a Unix socket. ... ok test_get_request_params (tests.extensions.test_base.ClientExtensionFactoryTests) ... ok test_process_response_params (tests.extensions.test_base.ClientExtensionFactoryTests) ... ok test_decode (tests.extensions.test_base.ExtensionTests) ... ok test_encode (tests.extensions.test_base.ExtensionTests) ... ok test_process_request_params (tests.extensions.test_base.ServerExtensionFactoryTests) ... ok test_enable_client_permessage_deflate (tests.extensions.test_permessage_deflate.ClientPerMessageDeflateFactoryTests) ... ok test_get_request_params (tests.extensions.test_permessage_deflate.ClientPerMessageDeflateFactoryTests) ... ok test_init (tests.extensions.test_permessage_deflate.ClientPerMessageDeflateFactoryTests) ... ok test_init_error (tests.extensions.test_permessage_deflate.ClientPerMessageDeflateFactoryTests) ... ok test_name (tests.extensions.test_permessage_deflate.ClientPerMessageDeflateFactoryTests) ... ok test_process_response_params (tests.extensions.test_permessage_deflate.ClientPerMessageDeflateFactoryTests) ... ok test_process_response_params_deduplication (tests.extensions.test_permessage_deflate.ClientPerMessageDeflateFactoryTests) ... ok test_compress_settings (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_context_takeover (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_decompress_max_size (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_encode_decode_binary_frame (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_encode_decode_fragmented_binary_frame (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_encode_decode_fragmented_text_frame (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_encode_decode_large_frame (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_encode_decode_text_frame (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_local_no_context_takeover (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_name (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_no_decode_binary_frame (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_no_decode_fragmented_binary_frame (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_no_decode_fragmented_text_frame (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_no_decode_text_frame (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_no_encode_decode_close_frame (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_no_encode_decode_ping_frame (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_no_encode_decode_pong_frame (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_remote_no_context_takeover (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_repr (tests.extensions.test_permessage_deflate.PerMessageDeflateTests) ... ok test_enable_server_permessage_deflate (tests.extensions.test_permessage_deflate.ServerPerMessageDeflateFactoryTests) ... ok test_init (tests.extensions.test_permessage_deflate.ServerPerMessageDeflateFactoryTests) ... ok test_init_error (tests.extensions.test_permessage_deflate.ServerPerMessageDeflateFactoryTests) ... ok test_name (tests.extensions.test_permessage_deflate.ServerPerMessageDeflateFactoryTests) ... ok test_process_request_params (tests.extensions.test_permessage_deflate.ServerPerMessageDeflateFactoryTests) ... ok test_process_response_params_deduplication (tests.extensions.test_permessage_deflate.ServerPerMessageDeflateFactoryTests) ... ok test_basic_auth (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_bad_multiple_credentials (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_check_credentials (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_custom_protocol (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_custom_protocol_subclass (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_defaults_to_deny_all (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_invalid_credentials_details (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_invalid_password (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_invalid_username (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_missing_credentials (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_missing_credentials_details (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_server_bad_credentials (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_server_multiple_credentials (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_server_no_credentials (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_unsupported_credentials (tests.legacy.test_auth.AuthClientServerTests) ... ok test_basic_auth_unsupported_credentials_details (tests.legacy.test_auth.AuthClientServerTests) ... ok test_is_credentials (tests.legacy.test_auth.AuthTests) ... ok test_is_not_credentials (tests.legacy.test_auth.AuthTests) ... ok test_client (tests.legacy.test_client_server.AsyncAwaitTests) ... ok test_server (tests.legacy.test_client_server.AsyncAwaitTests) ... ok test_iterate_on_messages (tests.legacy.test_client_server.AsyncIteratorTests) ... ok test_iterate_on_messages_going_away_exit_ok (tests.legacy.test_client_server.AsyncIteratorTests) ... ok test_iterate_on_messages_internal_error_exit_not_ok (tests.legacy.test_client_server.AsyncIteratorTests) ... ok test_checking_lack_of_origin_succeeds (tests.legacy.test_client_server.ClientServerOriginTests) ... ok test_checking_lack_of_origin_succeeds_backwards_compatibility (tests.legacy.test_client_server.ClientServerOriginTests) ... ok test_checking_origin_fails (tests.legacy.test_client_server.ClientServerOriginTests) ... ok test_checking_origin_succeeds (tests.legacy.test_client_server.ClientServerOriginTests) ... ok test_checking_origins_fails_with_multiple_headers (tests.legacy.test_client_server.ClientServerOriginTests) ... ok test_basic (tests.legacy.test_client_server.ClientServerTests) ... ok test_client_close_timeout (tests.legacy.test_client_server.ClientServerTests) ... ok test_client_close_timeout_over_timeout (tests.legacy.test_client_server.ClientServerTests) ... ok test_client_closes_connection_before_handshake (tests.legacy.test_client_server.ClientServerTests) ... ok test_client_connect_canceled_during_handshake (tests.legacy.test_client_server.ClientServerTests) ... ok test_client_create_protocol (tests.legacy.test_client_server.ClientServerTests) ... ok test_client_create_protocol_function (tests.legacy.test_client_server.ClientServerTests) ... ok test_client_create_protocol_over_klass (tests.legacy.test_client_server.ClientServerTests) ... ok test_client_klass (tests.legacy.test_client_server.ClientServerTests) ... ok test_client_receives_malformed_response (tests.legacy.test_client_server.ClientServerTests) ... ok test_client_sends_invalid_handshake_request (tests.legacy.test_client_server.ClientServerTests) ... ok test_client_timeout_backwards_compatibility (tests.legacy.test_client_server.ClientServerTests) ... ok test_compression_deflate (tests.legacy.test_client_server.ClientServerTests) ... ok test_compression_unsupported_client (tests.legacy.test_client_server.ClientServerTests) ... ok test_compression_unsupported_server (tests.legacy.test_client_server.ClientServerTests) ... ok test_connection_error_during_closing_handshake (tests.legacy.test_client_server.ClientServerTests) ... ok test_connection_error_during_opening_handshake (tests.legacy.test_client_server.ClientServerTests) ... ok test_explicit_host_port (tests.legacy.test_client_server.ClientServerTests) ... ok test_explicit_socket (tests.legacy.test_client_server.ClientServerTests) ... ok test_extension (tests.legacy.test_client_server.ClientServerTests) ... ok test_extension_client_rejection (tests.legacy.test_client_server.ClientServerTests) ... ok test_extension_mismatch (tests.legacy.test_client_server.ClientServerTests) ... ok test_extension_no_match_then_match (tests.legacy.test_client_server.ClientServerTests) ... ok test_extension_not_accepted (tests.legacy.test_client_server.ClientServerTests) ... ok test_extension_not_requested (tests.legacy.test_client_server.ClientServerTests) ... ok test_extension_order (tests.legacy.test_client_server.ClientServerTests) ... ok test_extensions_error (tests.legacy.test_client_server.ClientServerTests) ... ok test_extensions_error_no_extensions (tests.legacy.test_client_server.ClientServerTests) ... ok test_http_request_custom_server_header (tests.legacy.test_client_server.ClientServerTests) ... ok test_http_request_http_endpoint (tests.legacy.test_client_server.ClientServerTests) ... ok test_http_request_no_server_header (tests.legacy.test_client_server.ClientServerTests) ... ok test_http_request_ws_endpoint (tests.legacy.test_client_server.ClientServerTests) ... ok test_infinite_redirect (tests.legacy.test_client_server.ClientServerTests) ... ok test_invalid_status_error_during_client_connect (tests.legacy.test_client_server.ClientServerTests) ... ok test_invalid_subprotocol_client (tests.legacy.test_client_server.ClientServerTests) ... ok test_invalid_subprotocol_server (tests.legacy.test_client_server.ClientServerTests) ... ok test_loop_backwards_compatibility (tests.legacy.test_client_server.ClientServerTests) ... ok test_no_extension (tests.legacy.test_client_server.ClientServerTests) ... ok test_no_subprotocol (tests.legacy.test_client_server.ClientServerTests) ... ok test_process_request_argument (tests.legacy.test_client_server.ClientServerTests) ... ok test_process_request_argument_backwards_compatibility (tests.legacy.test_client_server.ClientServerTests) ... ok test_process_request_override (tests.legacy.test_client_server.ClientServerTests) ... ok test_process_request_override_backwards_compatibility (tests.legacy.test_client_server.ClientServerTests) ... ok test_process_request_returns_int_status (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_custom_request_headers (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_custom_response_headers (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_custom_response_headers_callable (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_custom_response_headers_callable_none (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_custom_server_header (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_custom_server_header_legacy (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_custom_user_agent_header (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_custom_user_agent_header_legacy (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_deprecated_attributes (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_headers (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_no_server_header (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_no_user_agent_header (tests.legacy.test_client_server.ClientServerTests) ... ok test_protocol_path (tests.legacy.test_client_server.ClientServerTests) ... ok test_redirect (tests.legacy.test_client_server.ClientServerTests) ... ok test_redirect_missing_location (tests.legacy.test_client_server.ClientServerTests) ... ok test_redirect_relative_location (tests.legacy.test_client_server.ClientServerTests) ... ok test_redirect_secure (tests.legacy.test_client_server.ClientServerTests) ... ok test_select_subprotocol_argument (tests.legacy.test_client_server.ClientServerTests) ... ok test_select_subprotocol_override (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_close_crashes (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_close_timeout (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_close_timeout_over_timeout (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_create_protocol (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_create_protocol_function (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_create_protocol_over_klass (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_does_not_switch_protocols (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_error_in_handshake (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_handler_crashes (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_klass_backwards_compatibility (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_receives_malformed_request (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_sends_invalid_handshake_response (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_shuts_down_and_waits_until_handlers_terminate (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_shuts_down_during_connection_handling (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_shuts_down_during_opening_handshake (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_shuts_down_gracefully_during_connection_handling (tests.legacy.test_client_server.ClientServerTests) ... ok test_server_timeout_backwards_compatibility (tests.legacy.test_client_server.ClientServerTests) ... ok test_subprotocol (tests.legacy.test_client_server.ClientServerTests) ... ok test_subprotocol_error (tests.legacy.test_client_server.ClientServerTests) ... ok test_subprotocol_error_no_subprotocols (tests.legacy.test_client_server.ClientServerTests) ... ok test_subprotocol_error_two_subprotocols (tests.legacy.test_client_server.ClientServerTests) ... ok test_subprotocol_not_accepted (tests.legacy.test_client_server.ClientServerTests) ... ok test_subprotocol_not_offered (tests.legacy.test_client_server.ClientServerTests) ... ok test_subprotocol_not_requested (tests.legacy.test_client_server.ClientServerTests) ... ok test_unix_socket (tests.legacy.test_client_server.ClientServerTests) ... ok test_ws_connection_http_endpoint (tests.legacy.test_client_server.ClientServerTests) ... ok test_ws_connection_ws_endpoint (tests.legacy.test_client_server.ClientServerTests) ... ok test_ws_handler_argument_backwards_compatibility (tests.legacy.test_client_server.ClientServerTests) ... ok test_ws_handler_argument_backwards_compatibility_partial (tests.legacy.test_client_server.ClientServerTests) ... ok test_client (tests.legacy.test_client_server.ContextManagerTests) ... ok test_server (tests.legacy.test_client_server.ContextManagerTests) ... ok test_unix_server (tests.legacy.test_client_server.ContextManagerTests) ... ok test_logger_client (tests.legacy.test_client_server.LoggerTests) ... ok test_reconnect (tests.legacy.test_client_server.ReconnectionTests) ... ok test_basic (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_client_close_timeout (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_client_close_timeout_over_timeout (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_client_closes_connection_before_handshake (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_client_create_protocol (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_client_create_protocol_function (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_client_create_protocol_over_klass (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_client_klass (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_client_receives_malformed_response (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_client_sends_invalid_handshake_request (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_client_timeout_backwards_compatibility (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_compression_deflate (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_compression_unsupported_client (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_compression_unsupported_server (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_connection_error_during_closing_handshake (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_connection_error_during_opening_handshake (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_explicit_host_port (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_explicit_socket (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_extension (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_extension_client_rejection (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_extension_mismatch (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_extension_no_match_then_match (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_extension_not_accepted (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_extension_not_requested (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_extension_order (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_extensions_error (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_extensions_error_no_extensions (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_http_request_custom_server_header (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_http_request_http_endpoint (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_http_request_no_server_header (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_http_request_ws_endpoint (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_infinite_redirect (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_invalid_status_error_during_client_connect (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_invalid_subprotocol_client (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_invalid_subprotocol_server (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_loop_backwards_compatibility (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_no_extension (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_no_subprotocol (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_process_request_argument (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_process_request_argument_backwards_compatibility (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_process_request_override (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_process_request_override_backwards_compatibility (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_process_request_returns_int_status (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_custom_request_headers (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_custom_response_headers (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_custom_response_headers_callable (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_custom_response_headers_callable_none (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_custom_server_header (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_custom_server_header_legacy (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_custom_user_agent_header (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_custom_user_agent_header_legacy (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_deprecated_attributes (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_headers (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_no_server_header (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_no_user_agent_header (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_protocol_path (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_redirect (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_redirect_insecure (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_redirect_missing_location (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_redirect_relative_location (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_select_subprotocol_argument (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_select_subprotocol_override (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_close_crashes (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_close_timeout (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_close_timeout_over_timeout (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_create_protocol (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_create_protocol_function (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_create_protocol_over_klass (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_does_not_switch_protocols (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_error_in_handshake (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_handler_crashes (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_klass_backwards_compatibility (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_receives_malformed_request (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_sends_invalid_handshake_response (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_shuts_down_and_waits_until_handlers_terminate (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_shuts_down_during_connection_handling (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_shuts_down_during_opening_handshake (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_shuts_down_gracefully_during_connection_handling (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_server_timeout_backwards_compatibility (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_subprotocol (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_subprotocol_error (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_subprotocol_error_no_subprotocols (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_subprotocol_error_two_subprotocols (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_subprotocol_not_accepted (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_subprotocol_not_offered (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_subprotocol_not_requested (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_ws_connection_http_endpoint (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_ws_connection_ws_endpoint (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_ws_handler_argument_backwards_compatibility (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_ws_handler_argument_backwards_compatibility_partial (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_ws_uri_is_rejected (tests.legacy.test_client_server.SecureClientServerTests) ... ok test_client (tests.legacy.test_client_server.YieldFromTests) ... ok test_server (tests.legacy.test_client_server.YieldFromTests) ... ok test_str (tests.legacy.test_exceptions.ExceptionsTests) ... ok test_bad_opcode (tests.legacy.test_framing.FramingTests) ... ok test_bad_reserved_bits (tests.legacy.test_framing.FramingTests) ... ok test_binary (tests.legacy.test_framing.FramingTests) ... ok test_binary_masked (tests.legacy.test_framing.FramingTests) ... ok test_close (tests.legacy.test_framing.FramingTests) ... ok test_control_frame_max_length (tests.legacy.test_framing.FramingTests) ... ok test_extensions (tests.legacy.test_framing.FramingTests) ... ok test_fragmented_control_frame (tests.legacy.test_framing.FramingTests) ... ok test_good_opcode (tests.legacy.test_framing.FramingTests) ... ok test_long (tests.legacy.test_framing.FramingTests) ... ok test_mask_flag (tests.legacy.test_framing.FramingTests) ... ok test_non_ascii_text (tests.legacy.test_framing.FramingTests) ... ok test_non_ascii_text_masked (tests.legacy.test_framing.FramingTests) ... ok test_payload_too_big (tests.legacy.test_framing.FramingTests) ... ok test_ping (tests.legacy.test_framing.FramingTests) ... ok test_pong (tests.legacy.test_framing.FramingTests) ... ok test_text (tests.legacy.test_framing.FramingTests) ... ok test_text_masked (tests.legacy.test_framing.FramingTests) ... ok test_very_long (tests.legacy.test_framing.FramingTests) ... ok test_parse_close_and_serialize_close (tests.legacy.test_framing.ParseAndSerializeCloseTests) ... ok test_parse_close_empty (tests.legacy.test_framing.ParseAndSerializeCloseTests) ... ok test_parse_close_errors (tests.legacy.test_framing.ParseAndSerializeCloseTests) ... ok test_serialize_close_errors (tests.legacy.test_framing.ParseAndSerializeCloseTests) ... ok test_prepare_ctrl_bytearray (tests.legacy.test_framing.PrepareCtrlTests) ... ok test_prepare_ctrl_bytes (tests.legacy.test_framing.PrepareCtrlTests) ... ok test_prepare_ctrl_list (tests.legacy.test_framing.PrepareCtrlTests) ... ok test_prepare_ctrl_memoryview (tests.legacy.test_framing.PrepareCtrlTests) ... ok test_prepare_ctrl_none (tests.legacy.test_framing.PrepareCtrlTests) ... ok test_prepare_ctrl_str (tests.legacy.test_framing.PrepareCtrlTests) ... ok test_prepare_data_bytearray (tests.legacy.test_framing.PrepareDataTests) ... ok test_prepare_data_bytes (tests.legacy.test_framing.PrepareDataTests) ... ok test_prepare_data_list (tests.legacy.test_framing.PrepareDataTests) ... ok test_prepare_data_memoryview (tests.legacy.test_framing.PrepareDataTests) ... ok test_prepare_data_none (tests.legacy.test_framing.PrepareDataTests) ... ok test_prepare_data_str (tests.legacy.test_framing.PrepareDataTests) ... ok test_request_additional_connection (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_additional_key (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_additional_upgrade (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_additional_version (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_invalid_connection (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_invalid_key_not_16_bytes_long (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_invalid_key_not_base64 (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_invalid_key_not_well_padded (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_invalid_upgrade (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_invalid_version (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_missing_connection (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_missing_key (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_missing_upgrade (tests.legacy.test_handshake.HandshakeTests) ... ok test_request_missing_version (tests.legacy.test_handshake.HandshakeTests) ... ok test_response_additional_accept (tests.legacy.test_handshake.HandshakeTests) ... ok test_response_additional_connection (tests.legacy.test_handshake.HandshakeTests) ... ok test_response_additional_upgrade (tests.legacy.test_handshake.HandshakeTests) ... ok test_response_invalid_accept (tests.legacy.test_handshake.HandshakeTests) ... ok test_response_invalid_connection (tests.legacy.test_handshake.HandshakeTests) ... ok test_response_invalid_upgrade (tests.legacy.test_handshake.HandshakeTests) ... ok test_response_missing_accept (tests.legacy.test_handshake.HandshakeTests) ... ok test_response_missing_connection (tests.legacy.test_handshake.HandshakeTests) ... ok test_response_missing_upgrade (tests.legacy.test_handshake.HandshakeTests) ... ok test_round_trip (tests.legacy.test_handshake.HandshakeTests) ... ok test_header_name (tests.legacy.test_http.HTTPAsyncTests) ... ok test_header_value (tests.legacy.test_http.HTTPAsyncTests) ... ok test_headers_limit (tests.legacy.test_http.HTTPAsyncTests) ... ok test_line_ending (tests.legacy.test_http.HTTPAsyncTests) ... ok test_line_limit (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_request (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_request_empty (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_request_invalid_header (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_request_invalid_request_line (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_request_invalid_status_line (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_request_unsupported_method (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_request_unsupported_version (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_response (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_response_empty (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_response_invalid_header (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_response_invalid_reason (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_response_invalid_status (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_response_unsupported_status (tests.legacy.test_http.HTTPAsyncTests) ... ok test_read_response_unsupported_version (tests.legacy.test_http.HTTPAsyncTests) ... ok test_abort_ping (tests.legacy.test_protocol.ClientTests) ... ok test_abort_ping_does_not_log_exception_if_not_retreived (tests.legacy.test_protocol.ClientTests) ... ok test_acknowledge_aborted_ping (tests.legacy.test_protocol.ClientTests) ... ok test_acknowledge_ping (tests.legacy.test_protocol.ClientTests) ... ok test_acknowledge_previous_pings (tests.legacy.test_protocol.ClientTests) ... ok test_answer_ping (tests.legacy.test_protocol.ClientTests) ... ok test_answer_ping_does_not_crash_if_connection_closed (tests.legacy.test_protocol.ClientTests) ... ok test_answer_ping_does_not_crash_if_connection_closing (tests.legacy.test_protocol.ClientTests) ... ok test_broadcast_binary (tests.legacy.test_protocol.ClientTests) ... ok test_broadcast_binary_reports_no_errors (tests.legacy.test_protocol.ClientTests) ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_no_clients (tests.legacy.test_protocol.ClientTests) ... ok test_broadcast_reports_connection_failing_to_send (tests.legacy.test_protocol.ClientTests) ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_reports_connection_sending_fragmented_text (tests.legacy.test_protocol.ClientTests) ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_skips_closed_connection (tests.legacy.test_protocol.ClientTests) ... ok test_broadcast_skips_closing_connection (tests.legacy.test_protocol.ClientTests) ... ok test_broadcast_skips_connection_failing_to_send (tests.legacy.test_protocol.ClientTests) ... ok test_broadcast_skips_connection_sending_fragmented_text (tests.legacy.test_protocol.ClientTests) ... ok test_broadcast_text (tests.legacy.test_protocol.ClientTests) ... ok test_broadcast_text_reports_no_errors (tests.legacy.test_protocol.ClientTests) ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_two_clients (tests.legacy.test_protocol.ClientTests) ... ok test_broadcast_type_error (tests.legacy.test_protocol.ClientTests) ... ok test_canceled_ping (tests.legacy.test_protocol.ClientTests) ... ok test_close_code (tests.legacy.test_protocol.ClientTests) ... ok test_close_code_not_set (tests.legacy.test_protocol.ClientTests) ... ok test_close_connection_lost (tests.legacy.test_protocol.ClientTests) ... ok test_close_handshake_in_fragmented_text (tests.legacy.test_protocol.ClientTests) ... ok test_close_preserves_incoming_frames (tests.legacy.test_protocol.ClientTests) ... ok test_close_protocol_error (tests.legacy.test_protocol.ClientTests) ... ok test_close_reason (tests.legacy.test_protocol.ClientTests) ... ok test_close_reason_not_set (tests.legacy.test_protocol.ClientTests) ... ok test_closed (tests.legacy.test_protocol.ClientTests) ... ok test_connection_close_in_fragmented_text (tests.legacy.test_protocol.ClientTests) ... ok test_connection_lost (tests.legacy.test_protocol.ClientTests) ... ok test_control_frame_within_fragmented_text (tests.legacy.test_protocol.ClientTests) ... ok test_duplicate_ping (tests.legacy.test_protocol.ClientTests) ... ok test_ensure_open_before_opening_handshake (tests.legacy.test_protocol.ClientTests) ... ok test_ensure_open_during_unclean_close (tests.legacy.test_protocol.ClientTests) ... ok test_fragmented_binary (tests.legacy.test_protocol.ClientTests) ... ok test_fragmented_binary_no_max_size (tests.legacy.test_protocol.ClientTests) ... ok test_fragmented_binary_payload_too_big (tests.legacy.test_protocol.ClientTests) ... ok test_fragmented_text (tests.legacy.test_protocol.ClientTests) ... ok test_fragmented_text_no_max_size (tests.legacy.test_protocol.ClientTests) ... ok test_fragmented_text_payload_too_big (tests.legacy.test_protocol.ClientTests) ... ok test_ignore_pong (tests.legacy.test_protocol.ClientTests) ... ok test_keepalive_ping (tests.legacy.test_protocol.ClientTests) ... ok test_keepalive_ping_does_not_crash_when_connection_lost (tests.legacy.test_protocol.ClientTests) ... ok test_keepalive_ping_not_acknowledged_closes_connection (tests.legacy.test_protocol.ClientTests) ... ok test_keepalive_ping_stops_when_connection_closed (tests.legacy.test_protocol.ClientTests) ... ok test_keepalive_ping_stops_when_connection_closing (tests.legacy.test_protocol.ClientTests) ... ok test_keepalive_ping_unexpected_error (tests.legacy.test_protocol.ClientTests) ... ok test_keepalive_ping_with_no_ping_interval (tests.legacy.test_protocol.ClientTests) ... ok test_keepalive_ping_with_no_ping_timeout (tests.legacy.test_protocol.ClientTests) ... ok test_legacy_recv (tests.legacy.test_protocol.ClientTests) ... ok test_local_address (tests.legacy.test_protocol.ClientTests) ... ok test_local_address_before_connection (tests.legacy.test_protocol.ClientTests) ... ok test_local_close (tests.legacy.test_protocol.ClientTests) ... ok test_local_close_connection_lost_timeout_after_close (tests.legacy.test_protocol.ClientTests) ... ok test_local_close_connection_lost_timeout_after_write_eof (tests.legacy.test_protocol.ClientTests) ... ok test_local_close_during_recv (tests.legacy.test_protocol.ClientTests) ... ok test_local_close_receive_close_frame_timeout (tests.legacy.test_protocol.ClientTests) ... ok test_local_close_send_close_frame_timeout (tests.legacy.test_protocol.ClientTests) ... ok test_loop_backwards_compatibility (tests.legacy.test_protocol.ClientTests) ... ok test_open (tests.legacy.test_protocol.ClientTests) ... ok test_ping_binary (tests.legacy.test_protocol.ClientTests) ... ok test_ping_binary_from_bytearray (tests.legacy.test_protocol.ClientTests) ... ok test_ping_binary_from_memoryview (tests.legacy.test_protocol.ClientTests) ... ok test_ping_default (tests.legacy.test_protocol.ClientTests) ... ok test_ping_on_closed_connection (tests.legacy.test_protocol.ClientTests) ... ok test_ping_on_closing_connection_local (tests.legacy.test_protocol.ClientTests) ... ok test_ping_on_closing_connection_remote (tests.legacy.test_protocol.ClientTests) ... ok test_ping_text (tests.legacy.test_protocol.ClientTests) ... ok test_ping_type_error (tests.legacy.test_protocol.ClientTests) ... ok test_pong_binary (tests.legacy.test_protocol.ClientTests) ... ok test_pong_binary_from_bytearray (tests.legacy.test_protocol.ClientTests) ... ok test_pong_binary_from_memoryview (tests.legacy.test_protocol.ClientTests) ... ok test_pong_default (tests.legacy.test_protocol.ClientTests) ... ok test_pong_on_closed_connection (tests.legacy.test_protocol.ClientTests) ... ok test_pong_on_closing_connection_local (tests.legacy.test_protocol.ClientTests) ... ok test_pong_on_closing_connection_remote (tests.legacy.test_protocol.ClientTests) ... ok test_pong_text (tests.legacy.test_protocol.ClientTests) ... ok test_pong_type_error (tests.legacy.test_protocol.ClientTests) ... ok test_record_latency_on_pong (tests.legacy.test_protocol.ClientTests) ... ok test_recv_binary (tests.legacy.test_protocol.ClientTests) ... ok test_recv_binary_no_max_size (tests.legacy.test_protocol.ClientTests) ... ok test_recv_binary_payload_too_big (tests.legacy.test_protocol.ClientTests) ... ok test_recv_canceled (tests.legacy.test_protocol.ClientTests) ... ok test_recv_canceled_race_condition (tests.legacy.test_protocol.ClientTests) ... ok test_recv_on_closed_connection (tests.legacy.test_protocol.ClientTests) ... ok test_recv_on_closing_connection_local (tests.legacy.test_protocol.ClientTests) ... ok test_recv_on_closing_connection_remote (tests.legacy.test_protocol.ClientTests) ... ok test_recv_other_error (tests.legacy.test_protocol.ClientTests) ... ok test_recv_prevents_concurrent_calls (tests.legacy.test_protocol.ClientTests) ... ok test_recv_protocol_error (tests.legacy.test_protocol.ClientTests) ... ok test_recv_queue_empty (tests.legacy.test_protocol.ClientTests) ... ok test_recv_queue_full (tests.legacy.test_protocol.ClientTests) ... ok test_recv_queue_no_limit (tests.legacy.test_protocol.ClientTests) ... ok test_recv_text (tests.legacy.test_protocol.ClientTests) ... ok test_recv_text_no_max_size (tests.legacy.test_protocol.ClientTests) ... ok test_recv_text_payload_too_big (tests.legacy.test_protocol.ClientTests) ... ok test_recv_unicode_error (tests.legacy.test_protocol.ClientTests) ... ok test_recv_when_transfer_data_cancelled (tests.legacy.test_protocol.ClientTests) ... ok test_remote_address (tests.legacy.test_protocol.ClientTests) ... ok test_remote_address_before_connection (tests.legacy.test_protocol.ClientTests) ... ok test_remote_close (tests.legacy.test_protocol.ClientTests) ... ok test_remote_close_and_connection_lost (tests.legacy.test_protocol.ClientTests) ... ok test_remote_close_during_send (tests.legacy.test_protocol.ClientTests) ... ok test_return_latency_on_pong (tests.legacy.test_protocol.ClientTests) ... ok test_send_async_iterable_binary (tests.legacy.test_protocol.ClientTests) ... ok test_send_async_iterable_binary_from_bytearray (tests.legacy.test_protocol.ClientTests) ... ok test_send_async_iterable_binary_from_memoryview (tests.legacy.test_protocol.ClientTests) ... ok test_send_async_iterable_mixed_type_error (tests.legacy.test_protocol.ClientTests) ... ok test_send_async_iterable_prevents_concurrent_send (tests.legacy.test_protocol.ClientTests) ... ok test_send_async_iterable_text (tests.legacy.test_protocol.ClientTests) ... ok test_send_async_iterable_type_error (tests.legacy.test_protocol.ClientTests) ... ok test_send_binary (tests.legacy.test_protocol.ClientTests) ... ok test_send_binary_from_bytearray (tests.legacy.test_protocol.ClientTests) ... ok test_send_binary_from_memoryview (tests.legacy.test_protocol.ClientTests) ... ok test_send_dict (tests.legacy.test_protocol.ClientTests) ... ok test_send_empty_async_iterable (tests.legacy.test_protocol.ClientTests) ... ok test_send_empty_iterable (tests.legacy.test_protocol.ClientTests) ... ok test_send_iterable_binary (tests.legacy.test_protocol.ClientTests) ... ok test_send_iterable_binary_from_bytearray (tests.legacy.test_protocol.ClientTests) ... ok test_send_iterable_binary_from_memoryview (tests.legacy.test_protocol.ClientTests) ... ok test_send_iterable_mixed_type_error (tests.legacy.test_protocol.ClientTests) ... ok test_send_iterable_prevents_concurrent_send (tests.legacy.test_protocol.ClientTests) ... ok test_send_iterable_text (tests.legacy.test_protocol.ClientTests) ... ok test_send_iterable_type_error (tests.legacy.test_protocol.ClientTests) ... ok test_send_on_closed_connection (tests.legacy.test_protocol.ClientTests) ... ok test_send_on_closing_connection_local (tests.legacy.test_protocol.ClientTests) ... ok test_send_on_closing_connection_remote (tests.legacy.test_protocol.ClientTests) ... ok test_send_text (tests.legacy.test_protocol.ClientTests) ... ok test_send_type_error (tests.legacy.test_protocol.ClientTests) ... ok test_simultaneous_close (tests.legacy.test_protocol.ClientTests) ... ok test_timeout_backwards_compatibility (tests.legacy.test_protocol.ClientTests) ... ok test_unterminated_fragmented_text (tests.legacy.test_protocol.ClientTests) ... ok test_wait_closed (tests.legacy.test_protocol.ClientTests) ... ok test_abort_ping (tests.legacy.test_protocol.ServerTests) ... ok test_abort_ping_does_not_log_exception_if_not_retreived (tests.legacy.test_protocol.ServerTests) ... ok test_acknowledge_aborted_ping (tests.legacy.test_protocol.ServerTests) ... ok test_acknowledge_ping (tests.legacy.test_protocol.ServerTests) ... ok test_acknowledge_previous_pings (tests.legacy.test_protocol.ServerTests) ... ok test_answer_ping (tests.legacy.test_protocol.ServerTests) ... ok test_answer_ping_does_not_crash_if_connection_closed (tests.legacy.test_protocol.ServerTests) ... ok test_answer_ping_does_not_crash_if_connection_closing (tests.legacy.test_protocol.ServerTests) ... ok test_broadcast_binary (tests.legacy.test_protocol.ServerTests) ... ok test_broadcast_binary_reports_no_errors (tests.legacy.test_protocol.ServerTests) ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_no_clients (tests.legacy.test_protocol.ServerTests) ... ok test_broadcast_reports_connection_failing_to_send (tests.legacy.test_protocol.ServerTests) ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_reports_connection_sending_fragmented_text (tests.legacy.test_protocol.ServerTests) ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_skips_closed_connection (tests.legacy.test_protocol.ServerTests) ... ok test_broadcast_skips_closing_connection (tests.legacy.test_protocol.ServerTests) ... ok test_broadcast_skips_connection_failing_to_send (tests.legacy.test_protocol.ServerTests) ... ok test_broadcast_skips_connection_sending_fragmented_text (tests.legacy.test_protocol.ServerTests) ... ok test_broadcast_text (tests.legacy.test_protocol.ServerTests) ... ok test_broadcast_text_reports_no_errors (tests.legacy.test_protocol.ServerTests) ... skipped 'raise_exceptions requires Python 3.11+' test_broadcast_two_clients (tests.legacy.test_protocol.ServerTests) ... ok test_broadcast_type_error (tests.legacy.test_protocol.ServerTests) ... ok test_canceled_ping (tests.legacy.test_protocol.ServerTests) ... ok test_close_code (tests.legacy.test_protocol.ServerTests) ... ok test_close_code_not_set (tests.legacy.test_protocol.ServerTests) ... ok test_close_connection_lost (tests.legacy.test_protocol.ServerTests) ... ok test_close_handshake_in_fragmented_text (tests.legacy.test_protocol.ServerTests) ... ok test_close_preserves_incoming_frames (tests.legacy.test_protocol.ServerTests) ... ok test_close_protocol_error (tests.legacy.test_protocol.ServerTests) ... ok test_close_reason (tests.legacy.test_protocol.ServerTests) ... ok test_close_reason_not_set (tests.legacy.test_protocol.ServerTests) ... ok test_closed (tests.legacy.test_protocol.ServerTests) ... ok test_connection_close_in_fragmented_text (tests.legacy.test_protocol.ServerTests) ... ok test_connection_lost (tests.legacy.test_protocol.ServerTests) ... ok test_control_frame_within_fragmented_text (tests.legacy.test_protocol.ServerTests) ... ok test_duplicate_ping (tests.legacy.test_protocol.ServerTests) ... ok test_ensure_open_before_opening_handshake (tests.legacy.test_protocol.ServerTests) ... ok test_ensure_open_during_unclean_close (tests.legacy.test_protocol.ServerTests) ... ok test_fragmented_binary (tests.legacy.test_protocol.ServerTests) ... ok test_fragmented_binary_no_max_size (tests.legacy.test_protocol.ServerTests) ... ok test_fragmented_binary_payload_too_big (tests.legacy.test_protocol.ServerTests) ... ok test_fragmented_text (tests.legacy.test_protocol.ServerTests) ... ok test_fragmented_text_no_max_size (tests.legacy.test_protocol.ServerTests) ... ok test_fragmented_text_payload_too_big (tests.legacy.test_protocol.ServerTests) ... ok test_ignore_pong (tests.legacy.test_protocol.ServerTests) ... ok test_keepalive_ping (tests.legacy.test_protocol.ServerTests) ... ok test_keepalive_ping_does_not_crash_when_connection_lost (tests.legacy.test_protocol.ServerTests) ... ok test_keepalive_ping_not_acknowledged_closes_connection (tests.legacy.test_protocol.ServerTests) ... ok test_keepalive_ping_stops_when_connection_closed (tests.legacy.test_protocol.ServerTests) ... ok test_keepalive_ping_stops_when_connection_closing (tests.legacy.test_protocol.ServerTests) ... ok test_keepalive_ping_unexpected_error (tests.legacy.test_protocol.ServerTests) ... ok test_keepalive_ping_with_no_ping_interval (tests.legacy.test_protocol.ServerTests) ... ok test_keepalive_ping_with_no_ping_timeout (tests.legacy.test_protocol.ServerTests) ... ok test_legacy_recv (tests.legacy.test_protocol.ServerTests) ... ok test_local_address (tests.legacy.test_protocol.ServerTests) ... ok test_local_address_before_connection (tests.legacy.test_protocol.ServerTests) ... ok test_local_close (tests.legacy.test_protocol.ServerTests) ... ok test_local_close_connection_lost_timeout_after_close (tests.legacy.test_protocol.ServerTests) ... ok test_local_close_connection_lost_timeout_after_write_eof (tests.legacy.test_protocol.ServerTests) ... ok test_local_close_during_recv (tests.legacy.test_protocol.ServerTests) ... ok test_local_close_receive_close_frame_timeout (tests.legacy.test_protocol.ServerTests) ... ok test_local_close_send_close_frame_timeout (tests.legacy.test_protocol.ServerTests) ... ok test_loop_backwards_compatibility (tests.legacy.test_protocol.ServerTests) ... ok test_open (tests.legacy.test_protocol.ServerTests) ... ok test_ping_binary (tests.legacy.test_protocol.ServerTests) ... ok test_ping_binary_from_bytearray (tests.legacy.test_protocol.ServerTests) ... ok test_ping_binary_from_memoryview (tests.legacy.test_protocol.ServerTests) ... ok test_ping_default (tests.legacy.test_protocol.ServerTests) ... ok test_ping_on_closed_connection (tests.legacy.test_protocol.ServerTests) ... ok test_ping_on_closing_connection_local (tests.legacy.test_protocol.ServerTests) ... ok test_ping_on_closing_connection_remote (tests.legacy.test_protocol.ServerTests) ... ok test_ping_text (tests.legacy.test_protocol.ServerTests) ... ok test_ping_type_error (tests.legacy.test_protocol.ServerTests) ... ok test_pong_binary (tests.legacy.test_protocol.ServerTests) ... ok test_pong_binary_from_bytearray (tests.legacy.test_protocol.ServerTests) ... ok test_pong_binary_from_memoryview (tests.legacy.test_protocol.ServerTests) ... ok test_pong_default (tests.legacy.test_protocol.ServerTests) ... ok test_pong_on_closed_connection (tests.legacy.test_protocol.ServerTests) ... ok test_pong_on_closing_connection_local (tests.legacy.test_protocol.ServerTests) ... ok test_pong_on_closing_connection_remote (tests.legacy.test_protocol.ServerTests) ... ok test_pong_text (tests.legacy.test_protocol.ServerTests) ... ok test_pong_type_error (tests.legacy.test_protocol.ServerTests) ... ok test_record_latency_on_pong (tests.legacy.test_protocol.ServerTests) ... ok test_recv_binary (tests.legacy.test_protocol.ServerTests) ... ok test_recv_binary_no_max_size (tests.legacy.test_protocol.ServerTests) ... ok test_recv_binary_payload_too_big (tests.legacy.test_protocol.ServerTests) ... ok test_recv_canceled (tests.legacy.test_protocol.ServerTests) ... ok test_recv_canceled_race_condition (tests.legacy.test_protocol.ServerTests) ... ok test_recv_on_closed_connection (tests.legacy.test_protocol.ServerTests) ... ok test_recv_on_closing_connection_local (tests.legacy.test_protocol.ServerTests) ... ok test_recv_on_closing_connection_remote (tests.legacy.test_protocol.ServerTests) ... ok test_recv_other_error (tests.legacy.test_protocol.ServerTests) ... ok test_recv_prevents_concurrent_calls (tests.legacy.test_protocol.ServerTests) ... ok test_recv_protocol_error (tests.legacy.test_protocol.ServerTests) ... ok test_recv_queue_empty (tests.legacy.test_protocol.ServerTests) ... ok test_recv_queue_full (tests.legacy.test_protocol.ServerTests) ... ok test_recv_queue_no_limit (tests.legacy.test_protocol.ServerTests) ... ok test_recv_text (tests.legacy.test_protocol.ServerTests) ... ok test_recv_text_no_max_size (tests.legacy.test_protocol.ServerTests) ... ok test_recv_text_payload_too_big (tests.legacy.test_protocol.ServerTests) ... ok test_recv_unicode_error (tests.legacy.test_protocol.ServerTests) ... ok test_recv_when_transfer_data_cancelled (tests.legacy.test_protocol.ServerTests) ... ok test_remote_address (tests.legacy.test_protocol.ServerTests) ... ok test_remote_address_before_connection (tests.legacy.test_protocol.ServerTests) ... ok test_remote_close (tests.legacy.test_protocol.ServerTests) ... ok test_remote_close_and_connection_lost (tests.legacy.test_protocol.ServerTests) ... ok test_remote_close_during_send (tests.legacy.test_protocol.ServerTests) ... ok test_return_latency_on_pong (tests.legacy.test_protocol.ServerTests) ... ok test_send_async_iterable_binary (tests.legacy.test_protocol.ServerTests) ... ok test_send_async_iterable_binary_from_bytearray (tests.legacy.test_protocol.ServerTests) ... ok test_send_async_iterable_binary_from_memoryview (tests.legacy.test_protocol.ServerTests) ... ok test_send_async_iterable_mixed_type_error (tests.legacy.test_protocol.ServerTests) ... ok test_send_async_iterable_prevents_concurrent_send (tests.legacy.test_protocol.ServerTests) ... ok test_send_async_iterable_text (tests.legacy.test_protocol.ServerTests) ... ok test_send_async_iterable_type_error (tests.legacy.test_protocol.ServerTests) ... ok test_send_binary (tests.legacy.test_protocol.ServerTests) ... ok test_send_binary_from_bytearray (tests.legacy.test_protocol.ServerTests) ... ok test_send_binary_from_memoryview (tests.legacy.test_protocol.ServerTests) ... ok test_send_dict (tests.legacy.test_protocol.ServerTests) ... ok test_send_empty_async_iterable (tests.legacy.test_protocol.ServerTests) ... ok test_send_empty_iterable (tests.legacy.test_protocol.ServerTests) ... ok test_send_iterable_binary (tests.legacy.test_protocol.ServerTests) ... ok test_send_iterable_binary_from_bytearray (tests.legacy.test_protocol.ServerTests) ... ok test_send_iterable_binary_from_memoryview (tests.legacy.test_protocol.ServerTests) ... ok test_send_iterable_mixed_type_error (tests.legacy.test_protocol.ServerTests) ... ok test_send_iterable_prevents_concurrent_send (tests.legacy.test_protocol.ServerTests) ... ok test_send_iterable_text (tests.legacy.test_protocol.ServerTests) ... ok test_send_iterable_type_error (tests.legacy.test_protocol.ServerTests) ... ok test_send_on_closed_connection (tests.legacy.test_protocol.ServerTests) ... ok test_send_on_closing_connection_local (tests.legacy.test_protocol.ServerTests) ... ok test_send_on_closing_connection_remote (tests.legacy.test_protocol.ServerTests) ... ok test_send_text (tests.legacy.test_protocol.ServerTests) ... ok test_send_type_error (tests.legacy.test_protocol.ServerTests) ... ok test_simultaneous_close (tests.legacy.test_protocol.ServerTests) ... ok test_timeout_backwards_compatibility (tests.legacy.test_protocol.ServerTests) ... ok test_unterminated_fragmented_text (tests.legacy.test_protocol.ServerTests) ... ok test_wait_closed (tests.legacy.test_protocol.ServerTests) ... ok test_ssl_context_argument (tests.sync.test_client.BackwardsCompatibilityTests) Client supports the deprecated ssl_context argument. ... ok test_additional_headers (tests.sync.test_client.ClientTests) Client can set additional headers with additional_headers. ... ok test_compression_is_enabled (tests.sync.test_client.ClientTests) Client enables compression by default. ... ok test_connection (tests.sync.test_client.ClientTests) Client connects to server and the handshake succeeds. ... ok test_connection_closed_during_handshake (tests.sync.test_client.ClientTests) Client reads EOF before receiving handshake response from server. ... ok test_custom_connection_factory (tests.sync.test_client.ClientTests) Client runs ClientConnection factory provided in create_connection. ... ok test_disable_compression (tests.sync.test_client.ClientTests) Client disables compression. ... ok test_existing_socket (tests.sync.test_client.ClientTests) Client connects using a pre-existing socket. ... ok test_handshake_fails (tests.sync.test_client.ClientTests) Client connects to server but the handshake fails. ... ok test_http_response (tests.sync.test_client.ClientTests) Client reads HTTP response. ... ok test_http_response_without_content_length (tests.sync.test_client.ClientTests) Client reads HTTP response without a Content-Length header. ... ok test_invalid_uri (tests.sync.test_client.ClientTests) Client receives an invalid URI. ... ok test_junk_handshake (tests.sync.test_client.ClientTests) Client closes the connection when receiving non-HTTP response from server. ... ok test_logger (tests.sync.test_client.ClientTests) Client accepts a logger argument. ... ok test_override_user_agent (tests.sync.test_client.ClientTests) Client can override User-Agent header with user_agent_header. ... ok test_remove_user_agent (tests.sync.test_client.ClientTests) Client can remove User-Agent header with user_agent_header. ... ok test_tcp_connection_fails (tests.sync.test_client.ClientTests) Client fails to connect to server. ... ok test_timeout_during_handshake (tests.sync.test_client.ClientTests) Client times out before receiving handshake response from server. ... ok test_invalid_subprotocol (tests.sync.test_client.ClientUsageErrorsTests) Client rejects single value of subprotocols. ... ok test_ssl_without_secure_uri (tests.sync.test_client.ClientUsageErrorsTests) Client rejects ssl when URI isn't secure. ... ok test_unix_with_path_and_sock (tests.sync.test_client.ClientUsageErrorsTests) Unix client rejects path when sock is provided. ... ok test_unix_without_path_or_sock (tests.sync.test_client.ClientUsageErrorsTests) Unix client requires path when sock isn't provided. ... ok test_unsupported_compression (tests.sync.test_client.ClientUsageErrorsTests) Client rejects incorrect value of compression. ... ok test_connection (tests.sync.test_client.SecureClientTests) Client connects to server securely. ... ok test_reject_invalid_server_certificate (tests.sync.test_client.SecureClientTests) Client rejects certificate where server certificate isn't trusted. ... ok test_reject_invalid_server_hostname (tests.sync.test_client.SecureClientTests) Client rejects certificate where server hostname doesn't match. ... ok test_set_server_hostname_explicitly (tests.sync.test_client.SecureClientTests) Client sets server_hostname to the value provided in argument. ... ok test_set_server_hostname_implicitly (tests.sync.test_client.SecureClientTests) Client sets server_hostname to the host in the WebSocket URI. ... ok test_connection (tests.sync.test_client.SecureUnixClientTests) Client connects to server securely over a Unix socket. ... ok test_set_server_hostname (tests.sync.test_client.SecureUnixClientTests) Client sets server_hostname to the host in the WebSocket URI. ... ok test_connection (tests.sync.test_client.UnixClientTests) Client connects to server over a Unix socket. ... ok test_set_host_header (tests.sync.test_client.UnixClientTests) Client sets the Host header to the host in the WebSocket URI. ... ok test_acknowledge_ping (tests.sync.test_connection.ClientConnectionTests) ping is acknowledged by a pong with the same payload. ... ok test_acknowledge_ping_non_matching_pong (tests.sync.test_connection.ClientConnectionTests) ping isn't acknowledged by a pong with a different payload. ... ok test_acknowledge_previous_ping (tests.sync.test_connection.ClientConnectionTests) ping is acknowledged by a pong with the same payload as a later ping. ... ok test_close (tests.sync.test_connection.ClientConnectionTests) close sends a close frame. ... ok test_close_code (tests.sync.test_connection.ClientConnectionTests) Connection has a close_code attribute. ... ok test_close_during_recv (tests.sync.test_connection.ClientConnectionTests) close aborts recv when called concurrently with recv. ... ok test_close_during_send (tests.sync.test_connection.ClientConnectionTests) close fails the connection when called concurrently with send. ... ok test_close_explicit_code_reason (tests.sync.test_connection.ClientConnectionTests) close sends a close frame with a given code and reason. ... ok test_close_idempotency (tests.sync.test_connection.ClientConnectionTests) close does nothing if the connection is already closed. ... ok test_close_idempotency_race_condition (tests.sync.test_connection.ClientConnectionTests) close waits if the connection is already closing. ... ok test_close_preserves_queued_messages (tests.sync.test_connection.ClientConnectionTests) close preserves messages buffered in the assembler. ... ok test_close_reason (tests.sync.test_connection.ClientConnectionTests) Connection has a close_reason attribute. ... ok test_close_timeout (tests.sync.test_connection.ClientConnectionTests) close_timeout parameter configures close timeout. ... ok test_close_timeout_waiting_for_close_frame (tests.sync.test_connection.ClientConnectionTests) close times out if no close frame is received. ... ok test_close_timeout_waiting_for_connection_closed (tests.sync.test_connection.ClientConnectionTests) close times out if EOF isn't received. ... ok test_close_waits_for_close_frame (tests.sync.test_connection.ClientConnectionTests) close waits for a close frame (then EOF) before returning. ... ok test_close_waits_for_connection_closed (tests.sync.test_connection.ClientConnectionTests) close waits for EOF before returning. ... ok test_enter (tests.sync.test_connection.ClientConnectionTests) __enter__ returns the connection itself. ... ok test_exit (tests.sync.test_connection.ClientConnectionTests) __exit__ closes the connection with code 1000. ... ok test_exit_with_exception (tests.sync.test_connection.ClientConnectionTests) __exit__ with an exception closes the connection with code 1011. ... ok test_id (tests.sync.test_connection.ClientConnectionTests) Connection has an id attribute. ... ok test_iter_binary (tests.sync.test_connection.ClientConnectionTests) __iter__ yields binary messages. ... ok test_iter_connection_closed_error (tests.sync.test_connection.ClientConnectionTests) __iter__ raises ConnectionClosedError after an error. ... ok test_iter_connection_closed_ok (tests.sync.test_connection.ClientConnectionTests) __iter__ terminates after a normal closure. ... ok test_iter_mixed (tests.sync.test_connection.ClientConnectionTests) __iter__ yields a mix of text and binary messages. ... ok test_iter_text (tests.sync.test_connection.ClientConnectionTests) __iter__ yields text messages. ... ok test_local_address (tests.sync.test_connection.ClientConnectionTests) Connection provides a local_address attribute. ... ok test_logger (tests.sync.test_connection.ClientConnectionTests) Connection has a logger attribute. ... ok test_max_queue (tests.sync.test_connection.ClientConnectionTests) max_queue configures high-water mark of frames buffer. ... ok test_max_queue_none (tests.sync.test_connection.ClientConnectionTests) max_queue disables high-water mark of frames buffer. ... ok test_max_queue_tuple (tests.sync.test_connection.ClientConnectionTests) max_queue configures high-water and low-water marks of frames buffer. ... ok test_ping (tests.sync.test_connection.ClientConnectionTests) ping sends a ping frame with a random payload. ... ok test_ping_duplicate_payload (tests.sync.test_connection.ClientConnectionTests) ping rejects the same payload until receiving the pong. ... ok test_ping_explicit_binary (tests.sync.test_connection.ClientConnectionTests) ping sends a ping frame with a payload provided as binary. ... ok test_ping_explicit_text (tests.sync.test_connection.ClientConnectionTests) ping sends a ping frame with a payload provided as text. ... ok test_ping_unsupported_type (tests.sync.test_connection.ClientConnectionTests) ping raises TypeError when called with an unsupported type. ... ok test_pong (tests.sync.test_connection.ClientConnectionTests) pong sends a pong frame. ... ok test_pong_explicit_binary (tests.sync.test_connection.ClientConnectionTests) pong sends a pong frame with a payload provided as binary. ... ok test_pong_explicit_text (tests.sync.test_connection.ClientConnectionTests) pong sends a pong frame with a payload provided as text. ... ok test_pong_unsupported_type (tests.sync.test_connection.ClientConnectionTests) pong raises TypeError when called with an unsupported type. ... ok test_reading_in_recv_events_fails (tests.sync.test_connection.ClientConnectionTests) Error when reading incoming frames is correctly reported. ... skipped 'works only on BSD' test_recv_binary (tests.sync.test_connection.ClientConnectionTests) recv receives a binary message. ... ok test_recv_binary_as_text (tests.sync.test_connection.ClientConnectionTests) recv receives a binary message as a str. ... ok test_recv_connection_closed_error (tests.sync.test_connection.ClientConnectionTests) recv raises ConnectionClosedError after an error. ... ok test_recv_connection_closed_ok (tests.sync.test_connection.ClientConnectionTests) recv raises ConnectionClosedOK after a normal closure. ... ok test_recv_during_recv (tests.sync.test_connection.ClientConnectionTests) recv raises ConcurrencyError when called concurrently. ... ok test_recv_during_recv_streaming (tests.sync.test_connection.ClientConnectionTests) recv raises ConcurrencyError when called concurrently with recv_streaming. ... ok test_recv_fragmented_binary (tests.sync.test_connection.ClientConnectionTests) recv receives a fragmented binary message. ... ok test_recv_fragmented_text (tests.sync.test_connection.ClientConnectionTests) recv receives a fragmented text message. ... ok test_recv_non_utf8_text (tests.sync.test_connection.ClientConnectionTests) recv receives a non-UTF-8 text message. ... ok test_recv_streaming_binary (tests.sync.test_connection.ClientConnectionTests) recv_streaming receives a binary message. ... ok test_recv_streaming_binary_as_str (tests.sync.test_connection.ClientConnectionTests) recv_streaming receives a binary message as a str. ... ok test_recv_streaming_connection_closed_error (tests.sync.test_connection.ClientConnectionTests) recv_streaming raises ConnectionClosedError after an error. ... ok test_recv_streaming_connection_closed_ok (tests.sync.test_connection.ClientConnectionTests) recv_streaming raises ConnectionClosedOK after a normal closure. ... ok test_recv_streaming_during_recv (tests.sync.test_connection.ClientConnectionTests) recv_streaming raises ConcurrencyError when called concurrently with recv. ... ok test_recv_streaming_during_recv_streaming (tests.sync.test_connection.ClientConnectionTests) recv_streaming raises ConcurrencyError when called concurrently. ... ok test_recv_streaming_fragmented_binary (tests.sync.test_connection.ClientConnectionTests) recv_streaming receives a fragmented binary message. ... ok test_recv_streaming_fragmented_text (tests.sync.test_connection.ClientConnectionTests) recv_streaming receives a fragmented text message. ... ok test_recv_streaming_non_utf8_text (tests.sync.test_connection.ClientConnectionTests) recv_streaming receives a non-UTF-8 text message. ... ok test_recv_streaming_text (tests.sync.test_connection.ClientConnectionTests) recv_streaming receives a text message. ... ok test_recv_streaming_text_as_bytes (tests.sync.test_connection.ClientConnectionTests) recv_streaming receives a text message as bytes. ... ok test_recv_text (tests.sync.test_connection.ClientConnectionTests) recv receives a text message. ... ok test_recv_text_as_bytes (tests.sync.test_connection.ClientConnectionTests) recv receives a text message as bytes. ... ok test_remote_address (tests.sync.test_connection.ClientConnectionTests) Connection provides a remote_address attribute. ... ok test_request (tests.sync.test_connection.ClientConnectionTests) Connection has a request attribute. ... ok test_response (tests.sync.test_connection.ClientConnectionTests) Connection has a response attribute. ... ok test_send_binary (tests.sync.test_connection.ClientConnectionTests) send sends a binary message. ... ok test_send_binary_from_str (tests.sync.test_connection.ClientConnectionTests) send sends a binary message from a str. ... ok test_send_connection_closed_error (tests.sync.test_connection.ClientConnectionTests) send raises ConnectionClosedError after an error. ... ok test_send_connection_closed_ok (tests.sync.test_connection.ClientConnectionTests) send raises ConnectionClosedOK after a normal closure. ... ok test_send_dict (tests.sync.test_connection.ClientConnectionTests) send raises TypeError when called with a dict. ... ok test_send_during_send (tests.sync.test_connection.ClientConnectionTests) send raises ConcurrencyError when called concurrently. ... ok test_send_empty_iterable (tests.sync.test_connection.ClientConnectionTests) send does nothing when called with an empty iterable. ... ok test_send_fragmented_binary (tests.sync.test_connection.ClientConnectionTests) send sends a fragmented binary message. ... ok test_send_fragmented_binary_from_str (tests.sync.test_connection.ClientConnectionTests) send sends a fragmented binary message from a str. ... ok test_send_fragmented_text (tests.sync.test_connection.ClientConnectionTests) send sends a fragmented text message. ... ok test_send_fragmented_text_from_bytes (tests.sync.test_connection.ClientConnectionTests) send sends a fragmented text message from bytes. ... ok test_send_mixed_iterable (tests.sync.test_connection.ClientConnectionTests) send raises TypeError when called with an iterable of inconsistent types. ... ok test_send_text (tests.sync.test_connection.ClientConnectionTests) send sends a text message. ... ok test_send_text_from_bytes (tests.sync.test_connection.ClientConnectionTests) send sends a text message from bytes. ... ok test_send_unsupported_iterable (tests.sync.test_connection.ClientConnectionTests) send raises TypeError when called with an iterable of unsupported type. ... ok test_send_unsupported_type (tests.sync.test_connection.ClientConnectionTests) send raises TypeError when called with an unsupported type. ... ok test_state (tests.sync.test_connection.ClientConnectionTests) Connection has a state attribute. ... ok test_subprotocol (tests.sync.test_connection.ClientConnectionTests) Connection has a subprotocol attribute. ... ok test_unexpected_failure_in_recv_events (tests.sync.test_connection.ClientConnectionTests) Unexpected internal error in recv_events() is correctly reported. ... ok test_unexpected_failure_in_send_context (tests.sync.test_connection.ClientConnectionTests) Unexpected internal error in send_context() is correctly reported. ... ok test_writing_in_recv_events_fails (tests.sync.test_connection.ClientConnectionTests) Error when responding to incoming frames is correctly reported. ... ok test_writing_in_send_context_fails (tests.sync.test_connection.ClientConnectionTests) Error when sending outgoing frame is correctly reported. ... ok test_acknowledge_ping (tests.sync.test_connection.ServerConnectionTests) ping is acknowledged by a pong with the same payload. ... ok test_acknowledge_ping_non_matching_pong (tests.sync.test_connection.ServerConnectionTests) ping isn't acknowledged by a pong with a different payload. ... ok test_acknowledge_previous_ping (tests.sync.test_connection.ServerConnectionTests) ping is acknowledged by a pong with the same payload as a later ping. ... ok test_close (tests.sync.test_connection.ServerConnectionTests) close sends a close frame. ... ok test_close_code (tests.sync.test_connection.ServerConnectionTests) Connection has a close_code attribute. ... ok test_close_during_recv (tests.sync.test_connection.ServerConnectionTests) close aborts recv when called concurrently with recv. ... ok test_close_during_send (tests.sync.test_connection.ServerConnectionTests) close fails the connection when called concurrently with send. ... ok test_close_explicit_code_reason (tests.sync.test_connection.ServerConnectionTests) close sends a close frame with a given code and reason. ... ok test_close_idempotency (tests.sync.test_connection.ServerConnectionTests) close does nothing if the connection is already closed. ... ok test_close_idempotency_race_condition (tests.sync.test_connection.ServerConnectionTests) close waits if the connection is already closing. ... ok test_close_preserves_queued_messages (tests.sync.test_connection.ServerConnectionTests) close preserves messages buffered in the assembler. ... ok test_close_reason (tests.sync.test_connection.ServerConnectionTests) Connection has a close_reason attribute. ... ok test_close_timeout (tests.sync.test_connection.ServerConnectionTests) close_timeout parameter configures close timeout. ... ok test_close_timeout_waiting_for_close_frame (tests.sync.test_connection.ServerConnectionTests) close times out if no close frame is received. ... ok test_close_timeout_waiting_for_connection_closed (tests.sync.test_connection.ServerConnectionTests) close times out if EOF isn't received. ... skipped 'only relevant on the client-side' test_close_waits_for_close_frame (tests.sync.test_connection.ServerConnectionTests) close waits for a close frame (then EOF) before returning. ... ok test_close_waits_for_connection_closed (tests.sync.test_connection.ServerConnectionTests) close waits for EOF before returning. ... skipped 'only relevant on the client-side' test_enter (tests.sync.test_connection.ServerConnectionTests) __enter__ returns the connection itself. ... ok test_exit (tests.sync.test_connection.ServerConnectionTests) __exit__ closes the connection with code 1000. ... ok test_exit_with_exception (tests.sync.test_connection.ServerConnectionTests) __exit__ with an exception closes the connection with code 1011. ... ok test_id (tests.sync.test_connection.ServerConnectionTests) Connection has an id attribute. ... ok test_iter_binary (tests.sync.test_connection.ServerConnectionTests) __iter__ yields binary messages. ... ok test_iter_connection_closed_error (tests.sync.test_connection.ServerConnectionTests) __iter__ raises ConnectionClosedError after an error. ... ok test_iter_connection_closed_ok (tests.sync.test_connection.ServerConnectionTests) __iter__ terminates after a normal closure. ... ok test_iter_mixed (tests.sync.test_connection.ServerConnectionTests) __iter__ yields a mix of text and binary messages. ... ok test_iter_text (tests.sync.test_connection.ServerConnectionTests) __iter__ yields text messages. ... ok test_local_address (tests.sync.test_connection.ServerConnectionTests) Connection provides a local_address attribute. ... ok test_logger (tests.sync.test_connection.ServerConnectionTests) Connection has a logger attribute. ... ok test_max_queue (tests.sync.test_connection.ServerConnectionTests) max_queue configures high-water mark of frames buffer. ... ok test_max_queue_none (tests.sync.test_connection.ServerConnectionTests) max_queue disables high-water mark of frames buffer. ... ok test_max_queue_tuple (tests.sync.test_connection.ServerConnectionTests) max_queue configures high-water and low-water marks of frames buffer. ... ok test_ping (tests.sync.test_connection.ServerConnectionTests) ping sends a ping frame with a random payload. ... ok test_ping_duplicate_payload (tests.sync.test_connection.ServerConnectionTests) ping rejects the same payload until receiving the pong. ... ok test_ping_explicit_binary (tests.sync.test_connection.ServerConnectionTests) ping sends a ping frame with a payload provided as binary. ... ok test_ping_explicit_text (tests.sync.test_connection.ServerConnectionTests) ping sends a ping frame with a payload provided as text. ... ok test_ping_unsupported_type (tests.sync.test_connection.ServerConnectionTests) ping raises TypeError when called with an unsupported type. ... ok test_pong (tests.sync.test_connection.ServerConnectionTests) pong sends a pong frame. ... ok test_pong_explicit_binary (tests.sync.test_connection.ServerConnectionTests) pong sends a pong frame with a payload provided as binary. ... ok test_pong_explicit_text (tests.sync.test_connection.ServerConnectionTests) pong sends a pong frame with a payload provided as text. ... ok test_pong_unsupported_type (tests.sync.test_connection.ServerConnectionTests) pong raises TypeError when called with an unsupported type. ... ok test_reading_in_recv_events_fails (tests.sync.test_connection.ServerConnectionTests) Error when reading incoming frames is correctly reported. ... skipped 'works only on BSD' test_recv_binary (tests.sync.test_connection.ServerConnectionTests) recv receives a binary message. ... ok test_recv_binary_as_text (tests.sync.test_connection.ServerConnectionTests) recv receives a binary message as a str. ... ok test_recv_connection_closed_error (tests.sync.test_connection.ServerConnectionTests) recv raises ConnectionClosedError after an error. ... ok test_recv_connection_closed_ok (tests.sync.test_connection.ServerConnectionTests) recv raises ConnectionClosedOK after a normal closure. ... ok test_recv_during_recv (tests.sync.test_connection.ServerConnectionTests) recv raises ConcurrencyError when called concurrently. ... ok test_recv_during_recv_streaming (tests.sync.test_connection.ServerConnectionTests) recv raises ConcurrencyError when called concurrently with recv_streaming. ... ok test_recv_fragmented_binary (tests.sync.test_connection.ServerConnectionTests) recv receives a fragmented binary message. ... ok test_recv_fragmented_text (tests.sync.test_connection.ServerConnectionTests) recv receives a fragmented text message. ... ok test_recv_non_utf8_text (tests.sync.test_connection.ServerConnectionTests) recv receives a non-UTF-8 text message. ... ok test_recv_streaming_binary (tests.sync.test_connection.ServerConnectionTests) recv_streaming receives a binary message. ... ok test_recv_streaming_binary_as_str (tests.sync.test_connection.ServerConnectionTests) recv_streaming receives a binary message as a str. ... ok test_recv_streaming_connection_closed_error (tests.sync.test_connection.ServerConnectionTests) recv_streaming raises ConnectionClosedError after an error. ... ok test_recv_streaming_connection_closed_ok (tests.sync.test_connection.ServerConnectionTests) recv_streaming raises ConnectionClosedOK after a normal closure. ... ok test_recv_streaming_during_recv (tests.sync.test_connection.ServerConnectionTests) recv_streaming raises ConcurrencyError when called concurrently with recv. ... ok test_recv_streaming_during_recv_streaming (tests.sync.test_connection.ServerConnectionTests) recv_streaming raises ConcurrencyError when called concurrently. ... ok test_recv_streaming_fragmented_binary (tests.sync.test_connection.ServerConnectionTests) recv_streaming receives a fragmented binary message. ... ok test_recv_streaming_fragmented_text (tests.sync.test_connection.ServerConnectionTests) recv_streaming receives a fragmented text message. ... ok test_recv_streaming_non_utf8_text (tests.sync.test_connection.ServerConnectionTests) recv_streaming receives a non-UTF-8 text message. ... ok test_recv_streaming_text (tests.sync.test_connection.ServerConnectionTests) recv_streaming receives a text message. ... ok test_recv_streaming_text_as_bytes (tests.sync.test_connection.ServerConnectionTests) recv_streaming receives a text message as bytes. ... ok test_recv_text (tests.sync.test_connection.ServerConnectionTests) recv receives a text message. ... ok test_recv_text_as_bytes (tests.sync.test_connection.ServerConnectionTests) recv receives a text message as bytes. ... ok test_remote_address (tests.sync.test_connection.ServerConnectionTests) Connection provides a remote_address attribute. ... ok test_request (tests.sync.test_connection.ServerConnectionTests) Connection has a request attribute. ... ok test_response (tests.sync.test_connection.ServerConnectionTests) Connection has a response attribute. ... ok test_send_binary (tests.sync.test_connection.ServerConnectionTests) send sends a binary message. ... ok test_send_binary_from_str (tests.sync.test_connection.ServerConnectionTests) send sends a binary message from a str. ... ok test_send_connection_closed_error (tests.sync.test_connection.ServerConnectionTests) send raises ConnectionClosedError after an error. ... ok test_send_connection_closed_ok (tests.sync.test_connection.ServerConnectionTests) send raises ConnectionClosedOK after a normal closure. ... ok test_send_dict (tests.sync.test_connection.ServerConnectionTests) send raises TypeError when called with a dict. ... ok test_send_during_send (tests.sync.test_connection.ServerConnectionTests) send raises ConcurrencyError when called concurrently. ... ok test_send_empty_iterable (tests.sync.test_connection.ServerConnectionTests) send does nothing when called with an empty iterable. ... ok test_send_fragmented_binary (tests.sync.test_connection.ServerConnectionTests) send sends a fragmented binary message. ... ok test_send_fragmented_binary_from_str (tests.sync.test_connection.ServerConnectionTests) send sends a fragmented binary message from a str. ... ok test_send_fragmented_text (tests.sync.test_connection.ServerConnectionTests) send sends a fragmented text message. ... ok test_send_fragmented_text_from_bytes (tests.sync.test_connection.ServerConnectionTests) send sends a fragmented text message from bytes. ... ok test_send_mixed_iterable (tests.sync.test_connection.ServerConnectionTests) send raises TypeError when called with an iterable of inconsistent types. ... ok test_send_text (tests.sync.test_connection.ServerConnectionTests) send sends a text message. ... ok test_send_text_from_bytes (tests.sync.test_connection.ServerConnectionTests) send sends a text message from bytes. ... ok test_send_unsupported_iterable (tests.sync.test_connection.ServerConnectionTests) send raises TypeError when called with an iterable of unsupported type. ... ok test_send_unsupported_type (tests.sync.test_connection.ServerConnectionTests) send raises TypeError when called with an unsupported type. ... ok test_state (tests.sync.test_connection.ServerConnectionTests) Connection has a state attribute. ... ok test_subprotocol (tests.sync.test_connection.ServerConnectionTests) Connection has a subprotocol attribute. ... ok test_unexpected_failure_in_recv_events (tests.sync.test_connection.ServerConnectionTests) Unexpected internal error in recv_events() is correctly reported. ... ok test_unexpected_failure_in_send_context (tests.sync.test_connection.ServerConnectionTests) Unexpected internal error in send_context() is correctly reported. ... ok test_writing_in_recv_events_fails (tests.sync.test_connection.ServerConnectionTests) Error when responding to incoming frames is correctly reported. ... ok test_writing_in_send_context_fails (tests.sync.test_connection.ServerConnectionTests) Error when sending outgoing frame is correctly reported. ... ok test_close_is_idempotent (tests.sync.test_messages.AssemblerTests) close can be called multiple times safely. ... ok test_get_binary_message_already_received (tests.sync.test_messages.AssemblerTests) get returns a binary message that is already received. ... ok test_get_binary_message_not_received_yet (tests.sync.test_messages.AssemblerTests) get returns a binary message when it is received. ... ok test_get_decoded_binary_message (tests.sync.test_messages.AssemblerTests) get returns a binary message with UTF-8 decoding. ... ok test_get_does_not_resume_reading (tests.sync.test_messages.AssemblerTests) get does not resume reading when the low-water mark is unset. ... ok test_get_encoded_text_message (tests.sync.test_messages.AssemblerTests) get returns a text message without UTF-8 decoding. ... ok test_get_fails_after_close (tests.sync.test_messages.AssemblerTests) get raises EOFError after close is called. ... ok test_get_fails_when_get_is_running (tests.sync.test_messages.AssemblerTests) get cannot be called concurrently. ... ok test_get_fails_when_get_iter_is_running (tests.sync.test_messages.AssemblerTests) get cannot be called concurrently with get_iter. ... ok test_get_fails_when_interrupted_by_close (tests.sync.test_messages.AssemblerTests) get raises EOFError when close is called. ... ok test_get_fragmented_binary_message_already_received (tests.sync.test_messages.AssemblerTests) get reassembles a fragmented binary message that is already received. ... ok test_get_fragmented_binary_message_being_received (tests.sync.test_messages.AssemblerTests) get reassembles a fragmented binary message that is partially received. ... ok test_get_fragmented_binary_message_not_received_yet (tests.sync.test_messages.AssemblerTests) get reassembles a fragmented binary message when it is received. ... ok test_get_fragmented_text_message_already_received (tests.sync.test_messages.AssemblerTests) get reassembles a fragmented a text message that is already received. ... ok test_get_fragmented_text_message_being_received (tests.sync.test_messages.AssemblerTests) get reassembles a fragmented text message that is partially received. ... ok test_get_fragmented_text_message_not_received_yet (tests.sync.test_messages.AssemblerTests) get reassembles a fragmented text message when it is received. ... ok test_get_iter_binary_message_already_received (tests.sync.test_messages.AssemblerTests) get_iter yields a binary message that is already received. ... ok test_get_iter_binary_message_not_received_yet (tests.sync.test_messages.AssemblerTests) get_iter yields a binary message when it is received. ... ok test_get_iter_decoded_binary_message (tests.sync.test_messages.AssemblerTests) get_iter yields a binary message with UTF-8 decoding. ... ok test_get_iter_does_not_resume_reading (tests.sync.test_messages.AssemblerTests) get_iter does not resume reading when the low-water mark is unset. ... ok test_get_iter_encoded_text_message (tests.sync.test_messages.AssemblerTests) get_iter yields a text message without UTF-8 decoding. ... ok test_get_iter_fails_after_close (tests.sync.test_messages.AssemblerTests) get_iter raises EOFError after close is called. ... ok test_get_iter_fails_when_get_is_running (tests.sync.test_messages.AssemblerTests) get_iter cannot be called concurrently with get. ... ok test_get_iter_fails_when_get_iter_is_running (tests.sync.test_messages.AssemblerTests) get_iter cannot be called concurrently. ... ok test_get_iter_fails_when_interrupted_by_close (tests.sync.test_messages.AssemblerTests) get_iter raises EOFError when close is called. ... ok test_get_iter_fragmented_binary_message_already_received (tests.sync.test_messages.AssemblerTests) get_iter yields a fragmented binary message that is already received. ... ok test_get_iter_fragmented_binary_message_being_received (tests.sync.test_messages.AssemblerTests) get_iter yields a fragmented binary message that is partially received. ... ok test_get_iter_fragmented_binary_message_not_received_yet (tests.sync.test_messages.AssemblerTests) get_iter yields a fragmented binary message when it is received. ... ok test_get_iter_fragmented_text_message_already_received (tests.sync.test_messages.AssemblerTests) get_iter yields a fragmented text message that is already received. ... ok test_get_iter_fragmented_text_message_being_received (tests.sync.test_messages.AssemblerTests) get_iter yields a fragmented text message that is partially received. ... ok test_get_iter_fragmented_text_message_not_received_yet (tests.sync.test_messages.AssemblerTests) get_iter yields a fragmented text message when it is received. ... ok test_get_iter_partially_queued_fragmented_message_after_close (tests.sync.test_messages.AssemblerTests) get_iter yields a partial fragmented message after close is called. ... ok test_get_iter_queued_fragmented_message_after_close (tests.sync.test_messages.AssemblerTests) get_iter yields a fragmented message after close is called. ... ok test_get_iter_queued_message_after_close (tests.sync.test_messages.AssemblerTests) get_iter yields a message after close is called. ... ok test_get_iter_resumes_reading (tests.sync.test_messages.AssemblerTests) get_iter resumes reading when queue goes below the low-water mark. ... ok test_get_iter_text_message_already_received (tests.sync.test_messages.AssemblerTests) get_iter yields a text message that is already received. ... ok test_get_iter_text_message_not_received_yet (tests.sync.test_messages.AssemblerTests) get_iter yields a text message when it is received. ... ok test_get_partially_queued_fragmented_message_after_close (tests.sync.test_messages.AssemblerTests) get raises EOF on a partial fragmented message after close is called. ... ok test_get_queued_fragmented_message_after_close (tests.sync.test_messages.AssemblerTests) get reassembles a fragmented message after close is called. ... ok test_get_queued_message_after_close (tests.sync.test_messages.AssemblerTests) get returns a message after close is called. ... ok test_get_resumes_reading (tests.sync.test_messages.AssemblerTests) get resumes reading when queue goes below the low-water mark. ... ok test_get_text_message_already_received (tests.sync.test_messages.AssemblerTests) get returns a text message that is already received. ... ok test_get_text_message_not_received_yet (tests.sync.test_messages.AssemblerTests) get returns a text message when it is received. ... ok test_get_timeout_after_first_frame (tests.sync.test_messages.AssemblerTests) get times out after reading the first frame. ... ok test_get_timeout_before_first_frame (tests.sync.test_messages.AssemblerTests) get times out before reading the first frame. ... ok test_put_does_not_pause_reading (tests.sync.test_messages.AssemblerTests) put does not pause reading when the high-water mark is unset. ... ok test_put_fails_after_close (tests.sync.test_messages.AssemblerTests) put raises EOFError after close is called. ... ok test_put_pauses_reading (tests.sync.test_messages.AssemblerTests) put pauses reading when queue goes above the high-water mark. ... ok test_set_high_and_low_water_marks (tests.sync.test_messages.AssemblerTests) high and low set the high-water and low-water marks. ... ok test_set_high_water_mark (tests.sync.test_messages.AssemblerTests) high sets the high-water and low-water marks. ... ok test_set_invalid_high_water_mark (tests.sync.test_messages.AssemblerTests) high must be a non-negative integer. ... ok test_set_invalid_low_water_mark (tests.sync.test_messages.AssemblerTests) low must be higher than high. ... ok test_set_low_water_mark (tests.sync.test_messages.AssemblerTests) low sets the low-water and high-water marks. ... ok test_unset_high_and_low_water_marks (tests.sync.test_messages.AssemblerTests) High-water and low-water marks are unset. ... ok test_ssl_context_argument (tests.sync.test_server.BackwardsCompatibilityTests) Server supports the deprecated ssl_context argument. ... ok test_web_socket_server_class (tests.sync.test_server.BackwardsCompatibilityTests) ... ok test_authorization_with_incorrect_password (tests.sync.test_server.BasicAuthTests) basic_auth rejects client with incorrect password. ... ok test_authorization_with_unknown_username (tests.sync.test_server.BasicAuthTests) basic_auth rejects client with unknown username. ... ok test_bad_credentials (tests.sync.test_server.BasicAuthTests) basic_auth receives an unsupported credentials argument. ... ok test_bad_list_of_credentials (tests.sync.test_server.BasicAuthTests) basic_auth receives an unsupported credentials argument. ... ok test_check_credentials (tests.sync.test_server.BasicAuthTests) basic_auth accepts a check_credentials function. ... ok test_list_of_credentials (tests.sync.test_server.BasicAuthTests) basic_auth accepts a list of hard coded credentials. ... ok test_missing_authorization (tests.sync.test_server.BasicAuthTests) basic_auth rejects client without credentials. ... ok test_unsupported_authorization (tests.sync.test_server.BasicAuthTests) basic_auth rejects client with unsupported credentials. ... ok test_valid_authorization (tests.sync.test_server.BasicAuthTests) basic_auth authenticates client with HTTP Basic Authentication. ... ok test_with_credentials_and_check_credentials (tests.sync.test_server.BasicAuthTests) basic_auth requires only one of credentials and check_credentials. ... ok test_without_credentials_or_check_credentials (tests.sync.test_server.BasicAuthTests) basic_auth requires either credentials or check_credentials. ... ok test_connection (tests.sync.test_server.SecureServerTests) Server receives secure connection from client. ... ok test_connection_closed_during_tls_handshake (tests.sync.test_server.SecureServerTests) Server reads EOF before receiving TLS handshake request from client. ... ok test_timeout_during_tls_handshake (tests.sync.test_server.SecureServerTests) Server times out before receiving TLS handshake request from client. ... ok test_connection (tests.sync.test_server.SecureUnixServerTests) Server receives secure connection from client over a Unix socket. ... ok test_compression_is_enabled (tests.sync.test_server.ServerTests) Server enables compression by default. ... ok test_connection (tests.sync.test_server.ServerTests) Server receives connection from client and the handshake succeeds. ... ok test_connection_closed_during_handshake (tests.sync.test_server.ServerTests) Server reads EOF before receiving handshake request from client. ... ok test_connection_handler_raises_exception (tests.sync.test_server.ServerTests) Connection handler raises an exception. ... ok test_connection_handler_returns (tests.sync.test_server.ServerTests) Connection handler returns. ... ok test_custom_connection_factory (tests.sync.test_server.ServerTests) Server runs ServerConnection factory provided in create_connection. ... ok test_disable_compression (tests.sync.test_server.ServerTests) Server disables compression. ... ok test_existing_socket (tests.sync.test_server.ServerTests) Server receives connection using a pre-existing socket. ... ok test_fileno (tests.sync.test_server.ServerTests) Server provides a fileno attribute. ... ok test_handshake_fails (tests.sync.test_server.ServerTests) Server receives connection from client but the handshake fails. ... ok test_junk_handshake (tests.sync.test_server.ServerTests) Server closes the connection when receiving non-HTTP request from client. ... ok test_logger (tests.sync.test_server.ServerTests) Server accepts a logger argument. ... ok test_override_server (tests.sync.test_server.ServerTests) Server can override Server header with server_header. ... ok test_process_request_raises_exception (tests.sync.test_server.ServerTests) Server returns an error if process_request raises an exception. ... ok test_process_request_returns_none (tests.sync.test_server.ServerTests) Server runs process_request and continues the handshake. ... ok test_process_request_returns_response (tests.sync.test_server.ServerTests) Server aborts handshake if process_request returns a response. ... ok test_process_response_modifies_response (tests.sync.test_server.ServerTests) Server runs process_response and modifies the handshake response. ... ok test_process_response_raises_exception (tests.sync.test_server.ServerTests) Server returns an error if process_response raises an exception. ... ok test_process_response_replaces_response (tests.sync.test_server.ServerTests) Server runs process_response and replaces the handshake response. ... ok test_process_response_returns_none (tests.sync.test_server.ServerTests) Server runs process_response but keeps the handshake response. ... ok test_remove_server (tests.sync.test_server.ServerTests) Server can remove Server header with server_header. ... ok test_select_subprotocol (tests.sync.test_server.ServerTests) Server selects a subprotocol with the select_subprotocol callable. ... ok test_select_subprotocol_raises_exception (tests.sync.test_server.ServerTests) Server returns an error if select_subprotocol raises an exception. ... ok test_select_subprotocol_rejects_handshake (tests.sync.test_server.ServerTests) Server rejects handshake if select_subprotocol raises NegotiationError. ... ok test_shutdown (tests.sync.test_server.ServerTests) Server provides a shutdown method. ... ok test_timeout_during_handshake (tests.sync.test_server.ServerTests) Server times out before receiving handshake request from client. ... ok test_invalid_subprotocol (tests.sync.test_server.ServerUsageErrorsTests) Server rejects single value of subprotocols. ... ok test_unix_with_path_and_sock (tests.sync.test_server.ServerUsageErrorsTests) Unix server rejects path when sock is provided. ... ok test_unix_without_path_or_sock (tests.sync.test_server.ServerUsageErrorsTests) Unix server requires path when sock isn't provided. ... ok test_unsupported_compression (tests.sync.test_server.ServerUsageErrorsTests) Server rejects incorrect value of compression. ... ok test_connection (tests.sync.test_server.UnixServerTests) Server receives connection from client over a Unix socket. ... ok test_no_timeout (tests.sync.test_utils.DeadlineTests) timeout returns None when no deadline is set. ... ok test_timeout_elapsed_exception (tests.sync.test_utils.DeadlineTests) timeout raises TimeoutError if deadline is in the past. ... ok test_timeout_elapsed_no_exception (tests.sync.test_utils.DeadlineTests) timeout doesn't raise TimeoutError when raise_if_elapsed is disabled. ... ok test_timeout_pending (tests.sync.test_utils.DeadlineTests) timeout returns remaining time if deadline is in the future. ... ok test_headers_class (tests.test_auth.BackwardsCompatibilityTests) ... ok test_backoff (tests.test_client.BackoffTests) backoff() yields a random delay, then exponentially increasing delays. ... ok test_client_connection_class (tests.test_client.BackwardsCompatibilityTests) ClientConnection is a deprecated alias for ClientProtocol. ... ok test_receive_failed_response (tests.test_client.BasicTests) Client receives a failed handshake response. ... ok test_receive_successful_response (tests.test_client.BasicTests) Client receives a successful handshake response. ... ok test_send_request (tests.test_client.BasicTests) Client sends a handshake request. ... ok test_basic (tests.test_client.HandshakeTests) Handshake succeeds. ... ok test_enable_extension (tests.test_client.HandshakeTests) Client offers an extension and the server enables it. ... ok test_enable_subprotocol (tests.test_client.HandshakeTests) Client offers a subprotocol and the server enables it. ... ok test_extension_not_enabled (tests.test_client.HandshakeTests) Client offers an extension, but the server doesn't enable it. ... ok test_extension_not_offered (tests.test_client.HandshakeTests) Server enables an extension that the client didn't offer. ... ok test_invalid_accept (tests.test_client.HandshakeTests) Handshake fails when the Sec-WebSocket-Accept header is invalid. ... ok test_invalid_connection (tests.test_client.HandshakeTests) Handshake fails when the Connection header is invalid. ... ok test_invalid_upgrade (tests.test_client.HandshakeTests) Handshake fails when the Upgrade header is invalid. ... ok test_missing_accept (tests.test_client.HandshakeTests) Handshake fails when the Sec-WebSocket-Accept header is missing. ... ok test_missing_connection (tests.test_client.HandshakeTests) Handshake fails when the Connection header is missing. ... ok test_missing_upgrade (tests.test_client.HandshakeTests) Handshake fails when the Upgrade header is missing. ... ok test_multiple_accept (tests.test_client.HandshakeTests) Handshake fails when the Sec-WebSocket-Accept header is repeated. ... ok test_multiple_extensions (tests.test_client.HandshakeTests) Client offers several extensions and the server enables them. ... ok test_multiple_extensions_order (tests.test_client.HandshakeTests) Client respects the order of extensions chosen by the server. ... ok test_multiple_subprotocols (tests.test_client.HandshakeTests) Client offers several subprotocols and the server enables one. ... ok test_multiple_subprotocols_accepted (tests.test_client.HandshakeTests) Server attempts to enable multiple subprotocols. ... ok test_multiple_supported_extension_parameters (tests.test_client.HandshakeTests) Client offers the same extension with several parameters. ... ok test_no_extensions (tests.test_client.HandshakeTests) Handshake succeeds without extensions. ... ok test_no_extensions_offered (tests.test_client.HandshakeTests) Server enables an extension when the client didn't offer any. ... ok test_no_subprotocol_accepted (tests.test_client.HandshakeTests) Client offers a subprotocol, but the server doesn't enable it. ... ok test_no_subprotocol_requested (tests.test_client.HandshakeTests) Client doesn't offer a subprotocol, but the server enables one. ... ok test_no_subprotocols (tests.test_client.HandshakeTests) Handshake succeeds without subprotocols. ... ok test_offer_extension (tests.test_client.HandshakeTests) Client offers an extension. ... ok test_offer_subprotocol (tests.test_client.HandshakeTests) Client offers a subprotocol. ... ok test_supported_extension_parameters (tests.test_client.HandshakeTests) Server enables an extension with parameters supported by the client. ... ok test_unsupported_extension_parameters (tests.test_client.HandshakeTests) Server enables an extension with parameters unsupported by the client. ... ok test_unsupported_subprotocol (tests.test_client.HandshakeTests) Client offers subprotocols but the server enables another one. ... ok test_bypass_handshake (tests.test_client.MiscTests) ClientProtocol bypasses the opening handshake. ... ok test_custom_logger (tests.test_client.MiscTests) ClientProtocol accepts a logger argument. ... ok test_connect (tests.test_client.RequestTests) connect() creates an opening handshake request. ... ok test_extensions (tests.test_client.RequestTests) connect(extensions=...) generates a Sec-WebSocket-Extensions header. ... ok test_origin (tests.test_client.RequestTests) connect(origin=...) generates an Origin header. ... ok test_path (tests.test_client.RequestTests) connect() uses the path from the URI. ... ok test_port (tests.test_client.RequestTests) connect() uses the port from the URI or the default port. ... ok test_subprotocols (tests.test_client.RequestTests) connect(subprotocols=...) generates a Sec-WebSocket-Protocol header. ... ok test_user_info (tests.test_client.RequestTests) connect() perfoms HTTP Basic Authentication with user info from the URI. ... ok test_receive_failed_response (tests.test_client.ResponseTests) Client receives a failed handshake response. ... ok test_receive_no_response (tests.test_client.ResponseTests) Client receives no handshake response. ... ok test_receive_random_response (tests.test_client.ResponseTests) Client receives a junk handshake response. ... ok test_receive_successful_response (tests.test_client.ResponseTests) Client receives a successful handshake response. ... ok test_receive_truncated_response (tests.test_client.ResponseTests) Client receives a truncated handshake response. ... ok test_connection_class (tests.test_connection.BackwardsCompatibilityTests) Connection is a deprecated alias for Protocol. ... ok test_clear (tests.test_datastructures.HeadersTests) ... ok test_contains (tests.test_datastructures.HeadersTests) ... ok test_contains_case_insensitive (tests.test_datastructures.HeadersTests) ... ok test_contains_non_string_key (tests.test_datastructures.HeadersTests) ... ok test_contains_not_found (tests.test_datastructures.HeadersTests) ... ok test_copy (tests.test_datastructures.HeadersTests) ... ok test_delitem (tests.test_datastructures.HeadersTests) ... ok test_delitem_case_insensitive (tests.test_datastructures.HeadersTests) ... ok test_eq (tests.test_datastructures.HeadersTests) ... ok test_eq_case_insensitive (tests.test_datastructures.HeadersTests) ... ok test_eq_not_equal (tests.test_datastructures.HeadersTests) ... ok test_eq_other_type (tests.test_datastructures.HeadersTests) ... ok test_get_all (tests.test_datastructures.HeadersTests) ... ok test_get_all_case_insensitive (tests.test_datastructures.HeadersTests) ... ok test_get_all_no_values (tests.test_datastructures.HeadersTests) ... ok test_getitem (tests.test_datastructures.HeadersTests) ... ok test_getitem_case_insensitive (tests.test_datastructures.HeadersTests) ... ok test_getitem_key_error (tests.test_datastructures.HeadersTests) ... ok test_init (tests.test_datastructures.HeadersTests) ... ok test_init_from_headers (tests.test_datastructures.HeadersTests) ... ok test_init_from_headers_and_kwargs (tests.test_datastructures.HeadersTests) ... ok test_init_from_iterable (tests.test_datastructures.HeadersTests) ... ok test_init_from_iterable_and_kwargs (tests.test_datastructures.HeadersTests) ... ok test_init_from_kwargs (tests.test_datastructures.HeadersTests) ... ok test_init_from_mapping (tests.test_datastructures.HeadersTests) ... ok test_init_from_mapping_and_kwargs (tests.test_datastructures.HeadersTests) ... ok test_init_multiple_positional_arguments (tests.test_datastructures.HeadersTests) ... ok test_iter (tests.test_datastructures.HeadersTests) ... ok test_len (tests.test_datastructures.HeadersTests) ... ok test_raw_items (tests.test_datastructures.HeadersTests) ... ok test_repr (tests.test_datastructures.HeadersTests) ... ok test_serialize (tests.test_datastructures.HeadersTests) ... ok test_setitem (tests.test_datastructures.HeadersTests) ... ok test_setitem_case_insensitive (tests.test_datastructures.HeadersTests) ... ok test_str (tests.test_datastructures.HeadersTests) ... ok test_copy (tests.test_datastructures.MultiValueHeadersTests) ... ok test_delitem (tests.test_datastructures.MultiValueHeadersTests) ... ok test_get_all (tests.test_datastructures.MultiValueHeadersTests) ... ok test_getitem_multiple_values_error (tests.test_datastructures.MultiValueHeadersTests) ... ok test_init_from_headers (tests.test_datastructures.MultiValueHeadersTests) ... ok test_init_from_headers_and_kwargs (tests.test_datastructures.MultiValueHeadersTests) ... ok test_iter (tests.test_datastructures.MultiValueHeadersTests) ... ok test_len (tests.test_datastructures.MultiValueHeadersTests) ... ok test_raw_items (tests.test_datastructures.MultiValueHeadersTests) ... ok test_repr (tests.test_datastructures.MultiValueHeadersTests) ... ok test_serialize (tests.test_datastructures.MultiValueHeadersTests) ... ok test_setitem (tests.test_datastructures.MultiValueHeadersTests) ... ok test_str (tests.test_datastructures.MultiValueHeadersTests) ... ok test_multiple_values_error_str (tests.test_datastructures.MultipleValuesErrorTests) ... ok test_connection_closed_attributes_deprecation (tests.test_exceptions.DeprecationTests) ... ok test_connection_closed_attributes_deprecation_defaults (tests.test_exceptions.DeprecationTests) ... ok test_payload_too_big_with_message (tests.test_exceptions.DeprecationTests) ... ok test_str (tests.test_exceptions.ExceptionsTests) ... ok test_submodule_exports_are_globally_unique (tests.test_exports.ExportsTests) ... ok test_top_level_module_reexports_submodule_exports (tests.test_exports.ExportsTests) ... ok test_parse_and_serialize (tests.test_frames.CloseTests) ... ok test_parse_empty (tests.test_frames.CloseTests) ... ok test_parse_errors (tests.test_frames.CloseTests) ... ok test_serialize_errors (tests.test_frames.CloseTests) ... ok test_str (tests.test_frames.CloseTests) ... ok test_bad_opcode (tests.test_frames.FrameTests) ... ok test_bad_reserved_bits (tests.test_frames.FrameTests) ... ok test_binary_masked (tests.test_frames.FrameTests) ... ok test_binary_unmasked (tests.test_frames.FrameTests) ... ok test_close (tests.test_frames.FrameTests) ... ok test_control_frame_max_length (tests.test_frames.FrameTests) ... ok test_extensions (tests.test_frames.FrameTests) ... ok test_fragmented_control_frame (tests.test_frames.FrameTests) ... ok test_good_opcode (tests.test_frames.FrameTests) ... ok test_long (tests.test_frames.FrameTests) ... ok test_mask_flag (tests.test_frames.FrameTests) ... ok test_non_ascii_text_masked (tests.test_frames.FrameTests) ... ok test_non_ascii_text_unmasked (tests.test_frames.FrameTests) ... ok test_payload_too_big (tests.test_frames.FrameTests) ... ok test_ping (tests.test_frames.FrameTests) ... ok test_pong (tests.test_frames.FrameTests) ... ok test_text_masked (tests.test_frames.FrameTests) ... ok test_text_unmasked (tests.test_frames.FrameTests) ... ok test_very_long (tests.test_frames.FrameTests) ... ok test_binary (tests.test_frames.StrTests) ... ok test_binary_from_memoryview (tests.test_frames.StrTests) ... ok test_binary_non_final (tests.test_frames.StrTests) ... ok test_binary_non_final_from_memoryview (tests.test_frames.StrTests) ... ok test_binary_truncated (tests.test_frames.StrTests) ... ok test_binary_truncated_from_memoryview (tests.test_frames.StrTests) ... ok test_close (tests.test_frames.StrTests) ... ok test_close_reason (tests.test_frames.StrTests) ... ok test_cont_binary (tests.test_frames.StrTests) ... ok test_cont_binary_from_memoryview (tests.test_frames.StrTests) ... ok test_cont_binary_truncated (tests.test_frames.StrTests) ... ok test_cont_binary_truncated_from_memoryview (tests.test_frames.StrTests) ... ok test_cont_final_binary (tests.test_frames.StrTests) ... ok test_cont_final_binary_from_memoryview (tests.test_frames.StrTests) ... ok test_cont_final_text (tests.test_frames.StrTests) ... ok test_cont_text (tests.test_frames.StrTests) ... ok test_cont_text_truncated (tests.test_frames.StrTests) ... ok test_ping (tests.test_frames.StrTests) ... ok test_ping_binary (tests.test_frames.StrTests) ... ok test_ping_text (tests.test_frames.StrTests) ... ok test_ping_text_with_newline (tests.test_frames.StrTests) ... ok test_pong (tests.test_frames.StrTests) ... ok test_pong_binary (tests.test_frames.StrTests) ... ok test_pong_text (tests.test_frames.StrTests) ... ok test_pong_text_with_newline (tests.test_frames.StrTests) ... ok test_text (tests.test_frames.StrTests) ... ok test_text_non_final (tests.test_frames.StrTests) ... ok test_text_truncated (tests.test_frames.StrTests) ... ok test_text_with_newline (tests.test_frames.StrTests) ... ok test_build_authorization_basic (tests.test_headers.HeadersTests) ... ok test_build_authorization_basic_utf8 (tests.test_headers.HeadersTests) ... ok test_build_host (tests.test_headers.HeadersTests) ... ok test_build_www_authenticate_basic (tests.test_headers.HeadersTests) ... ok test_build_www_authenticate_basic_invalid_realm (tests.test_headers.HeadersTests) ... ok test_parse_authorization_basic (tests.test_headers.HeadersTests) ... ok test_parse_authorization_basic_invalid_header_format (tests.test_headers.HeadersTests) ... ok test_parse_authorization_basic_invalid_header_value (tests.test_headers.HeadersTests) ... ok test_parse_connection (tests.test_headers.HeadersTests) ... ok test_parse_connection_invalid_header_format (tests.test_headers.HeadersTests) ... ok test_parse_extension (tests.test_headers.HeadersTests) ... ok test_parse_extension_invalid_header_format (tests.test_headers.HeadersTests) ... ok test_parse_subprotocol (tests.test_headers.HeadersTests) ... ok test_parse_subprotocol_invalid_header (tests.test_headers.HeadersTests) ... ok test_parse_upgrade (tests.test_headers.HeadersTests) ... ok test_parse_upgrade_invalid_header_format (tests.test_headers.HeadersTests) ... ok test_validate_subprotocols (tests.test_headers.HeadersTests) ... ok test_validate_subprotocols_invalid (tests.test_headers.HeadersTests) ... ok test_headers_class (tests.test_http.BackwardsCompatibilityTests) ... ok test_parse_invalid_line_ending (tests.test_http11.HeadersTests) ... ok test_parse_invalid_name (tests.test_http11.HeadersTests) ... ok test_parse_invalid_value (tests.test_http11.HeadersTests) ... ok test_parse_too_long_line (tests.test_http11.HeadersTests) ... ok test_parse_too_long_value (tests.test_http11.HeadersTests) ... ok test_parse (tests.test_http11.RequestTests) ... ok test_parse_body (tests.test_http11.RequestTests) ... ok test_parse_body_with_transfer_encoding (tests.test_http11.RequestTests) ... ok test_parse_empty (tests.test_http11.RequestTests) ... ok test_parse_invalid_header (tests.test_http11.RequestTests) ... ok test_parse_invalid_request_line (tests.test_http11.RequestTests) ... ok test_parse_unsupported_method (tests.test_http11.RequestTests) ... ok test_parse_unsupported_protocol (tests.test_http11.RequestTests) ... ok test_serialize (tests.test_http11.RequestTests) ... ok test_parse (tests.test_http11.ResponseTests) ... ok test_parse_body_no_content (tests.test_http11.ResponseTests) ... ok test_parse_body_not_modified (tests.test_http11.ResponseTests) ... ok test_parse_body_with_content_length (tests.test_http11.ResponseTests) ... ok test_parse_body_with_content_length_too_long (tests.test_http11.ResponseTests) ... ok test_parse_body_with_transfer_encoding (tests.test_http11.ResponseTests) ... ok test_parse_body_without_content_length (tests.test_http11.ResponseTests) ... ok test_parse_body_without_content_length_too_long (tests.test_http11.ResponseTests) ... ok test_parse_empty (tests.test_http11.ResponseTests) ... ok test_parse_invalid_header (tests.test_http11.ResponseTests) ... ok test_parse_invalid_reason (tests.test_http11.ResponseTests) ... ok test_parse_invalid_status_line (tests.test_http11.ResponseTests) ... ok test_parse_non_integer_status (tests.test_http11.ResponseTests) ... ok test_parse_non_three_digit_status (tests.test_http11.ResponseTests) ... ok test_parse_unsupported_protocol (tests.test_http11.ResponseTests) ... ok test_serialize (tests.test_http11.ResponseTests) ... ok test_serialize_with_body (tests.test_http11.ResponseTests) ... ok test_attribute_error (tests.test_imports.ImportsTests) ... ok test_dir (tests.test_imports.ImportsTests) ... ok test_get_alias (tests.test_imports.ImportsTests) ... ok test_get_deprecated_alias (tests.test_imports.ImportsTests) ... ok test_client_receives_binary (tests.test_protocol.BinaryTests) ... ok test_client_receives_binary_after_receiving_close (tests.test_protocol.BinaryTests) ... ok test_client_receives_binary_over_size_limit (tests.test_protocol.BinaryTests) ... ok test_client_receives_fragmented_binary (tests.test_protocol.BinaryTests) ... ok test_client_receives_fragmented_binary_over_size_limit (tests.test_protocol.BinaryTests) ... ok test_client_receives_unexpected_binary (tests.test_protocol.BinaryTests) ... ok test_client_sends_binary (tests.test_protocol.BinaryTests) ... ok test_client_sends_binary_after_sending_close (tests.test_protocol.BinaryTests) ... ok test_client_sends_fragmented_binary (tests.test_protocol.BinaryTests) ... ok test_client_sends_unexpected_binary (tests.test_protocol.BinaryTests) ... ok test_server_receives_binary (tests.test_protocol.BinaryTests) ... ok test_server_receives_binary_after_receiving_close (tests.test_protocol.BinaryTests) ... ok test_server_receives_binary_over_size_limit (tests.test_protocol.BinaryTests) ... ok test_server_receives_fragmented_binary (tests.test_protocol.BinaryTests) ... ok test_server_receives_fragmented_binary_over_size_limit (tests.test_protocol.BinaryTests) ... ok test_server_receives_unexpected_binary (tests.test_protocol.BinaryTests) ... ok test_server_sends_binary (tests.test_protocol.BinaryTests) ... ok test_server_sends_binary_after_sending_close (tests.test_protocol.BinaryTests) ... ok test_server_sends_fragmented_binary (tests.test_protocol.BinaryTests) ... ok test_server_sends_unexpected_binary (tests.test_protocol.BinaryTests) ... ok test_client_receives_close (tests.test_protocol.CloseTests) ... ok test_client_receives_close_then_sends_close (tests.test_protocol.CloseTests) ... ok test_client_receives_close_with_code (tests.test_protocol.CloseTests) ... ok test_client_receives_close_with_code_and_reason (tests.test_protocol.CloseTests) ... ok test_client_receives_close_with_non_utf8_reason (tests.test_protocol.CloseTests) ... ok test_client_receives_close_with_truncated_code (tests.test_protocol.CloseTests) ... ok test_client_sends_close (tests.test_protocol.CloseTests) ... ok test_client_sends_close_after_connection_is_closed (tests.test_protocol.CloseTests) ... ok test_client_sends_close_then_receives_close (tests.test_protocol.CloseTests) ... ok test_client_sends_close_twice (tests.test_protocol.CloseTests) ... ok test_client_sends_close_with_code (tests.test_protocol.CloseTests) ... ok test_client_sends_close_with_code_and_reason (tests.test_protocol.CloseTests) ... ok test_client_sends_close_with_reason_only (tests.test_protocol.CloseTests) ... ok test_close_code (tests.test_protocol.CloseTests) ... ok test_close_code_not_available (tests.test_protocol.CloseTests) ... ok test_close_code_not_available_yet (tests.test_protocol.CloseTests) ... ok test_close_code_not_provided (tests.test_protocol.CloseTests) ... ok test_close_reason (tests.test_protocol.CloseTests) ... ok test_close_reason_not_available (tests.test_protocol.CloseTests) ... ok test_close_reason_not_available_yet (tests.test_protocol.CloseTests) ... ok test_close_reason_not_provided (tests.test_protocol.CloseTests) ... ok test_server_receives_close (tests.test_protocol.CloseTests) ... ok test_server_receives_close_then_sends_close (tests.test_protocol.CloseTests) ... ok test_server_receives_close_with_code (tests.test_protocol.CloseTests) ... ok test_server_receives_close_with_code_and_reason (tests.test_protocol.CloseTests) ... ok test_server_receives_close_with_non_utf8_reason (tests.test_protocol.CloseTests) ... ok test_server_receives_close_with_truncated_code (tests.test_protocol.CloseTests) ... ok test_server_sends_close (tests.test_protocol.CloseTests) ... ok test_server_sends_close_after_connection_is_closed (tests.test_protocol.CloseTests) ... ok test_server_sends_close_then_receives_close (tests.test_protocol.CloseTests) ... ok test_server_sends_close_twice (tests.test_protocol.CloseTests) ... ok test_server_sends_close_with_code (tests.test_protocol.CloseTests) ... ok test_server_sends_close_with_code_and_reason (tests.test_protocol.CloseTests) ... ok test_server_sends_close_with_reason_only (tests.test_protocol.CloseTests) ... ok test_client_receives_close_then_sends_close (tests.test_protocol.ConnectionClosedTests) ... ok test_client_receives_eof (tests.test_protocol.ConnectionClosedTests) ... ok test_client_sends_close_then_receives_close (tests.test_protocol.ConnectionClosedTests) ... ok test_client_sends_close_then_receives_eof (tests.test_protocol.ConnectionClosedTests) ... ok test_server_receives_close_then_sends_close (tests.test_protocol.ConnectionClosedTests) ... ok test_server_receives_eof (tests.test_protocol.ConnectionClosedTests) ... ok test_server_sends_close_then_receives_close (tests.test_protocol.ConnectionClosedTests) ... ok test_server_sends_close_then_receives_eof (tests.test_protocol.ConnectionClosedTests) ... ok test_client_receives_continuation_after_receiving_close (tests.test_protocol.ContinuationTests) ... ok test_client_receives_unexpected_continuation (tests.test_protocol.ContinuationTests) ... ok test_client_sends_continuation_after_sending_close (tests.test_protocol.ContinuationTests) ... ok test_client_sends_unexpected_continuation (tests.test_protocol.ContinuationTests) ... ok test_server_receives_continuation_after_receiving_close (tests.test_protocol.ContinuationTests) ... ok test_server_receives_unexpected_continuation (tests.test_protocol.ContinuationTests) ... ok test_server_sends_continuation_after_sending_close (tests.test_protocol.ContinuationTests) ... ok test_server_sends_unexpected_continuation (tests.test_protocol.ContinuationTests) ... ok test_client_receives_data_after_eof (tests.test_protocol.EOFTests) ... ok test_client_receives_data_after_exception (tests.test_protocol.EOFTests) ... ok test_client_receives_data_and_eof_after_exception (tests.test_protocol.EOFTests) ... ok test_client_receives_eof (tests.test_protocol.EOFTests) ... ok test_client_receives_eof_after_eof (tests.test_protocol.EOFTests) ... ok test_client_receives_eof_after_exception (tests.test_protocol.EOFTests) ... ok test_client_receives_eof_between_frames (tests.test_protocol.EOFTests) ... ok test_client_receives_eof_inside_frame (tests.test_protocol.EOFTests) ... ok test_server_receives_data_after_eof (tests.test_protocol.EOFTests) ... ok test_server_receives_data_after_exception (tests.test_protocol.EOFTests) ... ok test_server_receives_data_and_eof_after_exception (tests.test_protocol.EOFTests) ... ok test_server_receives_eof (tests.test_protocol.EOFTests) ... ok test_server_receives_eof_after_eof (tests.test_protocol.EOFTests) ... ok test_server_receives_eof_after_exception (tests.test_protocol.EOFTests) ... ok test_server_receives_eof_between_frames (tests.test_protocol.EOFTests) ... ok test_server_receives_eof_inside_frame (tests.test_protocol.EOFTests) ... ok test_client_hits_internal_error_reading_frame (tests.test_protocol.ErrorTests) ... ok test_server_hits_internal_error_reading_frame (tests.test_protocol.ErrorTests) ... ok test_client_extension_decodes_frame (tests.test_protocol.ExtensionsTests) ... ok test_client_extension_encodes_frame (tests.test_protocol.ExtensionsTests) ... ok test_server_extension_decodes_frame (tests.test_protocol.ExtensionsTests) ... ok test_server_extension_encodes_frame (tests.test_protocol.ExtensionsTests) ... ok test_client_stops_processing_frames_after_fail (tests.test_protocol.FailTests) ... ok test_server_stops_processing_frames_after_fail (tests.test_protocol.FailTests) ... ok test_client_receive_close_in_fragmented_message (tests.test_protocol.FragmentationTests) ... ok test_client_receive_ping_pong_in_fragmented_message (tests.test_protocol.FragmentationTests) ... ok test_client_send_close_in_fragmented_message (tests.test_protocol.FragmentationTests) ... ok test_client_send_ping_pong_in_fragmented_message (tests.test_protocol.FragmentationTests) ... ok test_server_receive_close_in_fragmented_message (tests.test_protocol.FragmentationTests) ... ok test_server_receive_ping_pong_in_fragmented_message (tests.test_protocol.FragmentationTests) ... ok test_server_send_close_in_fragmented_message (tests.test_protocol.FragmentationTests) ... ok test_server_send_ping_pong_in_fragmented_message (tests.test_protocol.FragmentationTests) ... ok test_client_receives_masked_frame (tests.test_protocol.MaskingTests) ... ok test_client_receives_unmasked_frame (tests.test_protocol.MaskingTests) ... ok test_client_sends_masked_frame (tests.test_protocol.MaskingTests) ... ok test_server_receives_masked_frame (tests.test_protocol.MaskingTests) ... ok test_server_receives_unmasked_frame (tests.test_protocol.MaskingTests) ... ok test_server_sends_unmasked_frame (tests.test_protocol.MaskingTests) ... ok test_client_custom_logger (tests.test_protocol.MiscTests) ... ok test_client_default_logger (tests.test_protocol.MiscTests) ... ok test_server_custom_logger (tests.test_protocol.MiscTests) ... ok test_server_default_logger (tests.test_protocol.MiscTests) ... ok test_client_receives_fragmented_ping_frame (tests.test_protocol.PingTests) ... ok test_client_receives_ping (tests.test_protocol.PingTests) ... ok test_client_receives_ping_after_receiving_close (tests.test_protocol.PingTests) ... ok test_client_receives_ping_with_data (tests.test_protocol.PingTests) ... ok test_client_sends_fragmented_ping_frame (tests.test_protocol.PingTests) ... ok test_client_sends_ping (tests.test_protocol.PingTests) ... ok test_client_sends_ping_after_connection_is_closed (tests.test_protocol.PingTests) ... ok test_client_sends_ping_after_sending_close (tests.test_protocol.PingTests) ... ok test_client_sends_ping_with_data (tests.test_protocol.PingTests) ... ok test_server_receives_fragmented_ping_frame (tests.test_protocol.PingTests) ... ok test_server_receives_ping (tests.test_protocol.PingTests) ... ok test_server_receives_ping_after_receiving_close (tests.test_protocol.PingTests) ... ok test_server_receives_ping_with_data (tests.test_protocol.PingTests) ... ok test_server_sends_fragmented_ping_frame (tests.test_protocol.PingTests) ... ok test_server_sends_ping (tests.test_protocol.PingTests) ... ok test_server_sends_ping_after_connection_is_closed (tests.test_protocol.PingTests) ... ok test_server_sends_ping_after_sending_close (tests.test_protocol.PingTests) ... ok test_server_sends_ping_with_data (tests.test_protocol.PingTests) ... ok test_client_receives_fragmented_pong_frame (tests.test_protocol.PongTests) ... ok test_client_receives_pong (tests.test_protocol.PongTests) ... ok test_client_receives_pong_after_receiving_close (tests.test_protocol.PongTests) ... ok test_client_receives_pong_with_data (tests.test_protocol.PongTests) ... ok test_client_sends_fragmented_pong_frame (tests.test_protocol.PongTests) ... ok test_client_sends_pong (tests.test_protocol.PongTests) ... ok test_client_sends_pong_after_connection_is_closed (tests.test_protocol.PongTests) ... ok test_client_sends_pong_after_sending_close (tests.test_protocol.PongTests) ... ok test_client_sends_pong_with_data (tests.test_protocol.PongTests) ... ok test_server_receives_fragmented_pong_frame (tests.test_protocol.PongTests) ... ok test_server_receives_pong (tests.test_protocol.PongTests) ... ok test_server_receives_pong_after_receiving_close (tests.test_protocol.PongTests) ... ok test_server_receives_pong_with_data (tests.test_protocol.PongTests) ... ok test_server_sends_fragmented_pong_frame (tests.test_protocol.PongTests) ... ok test_server_sends_pong (tests.test_protocol.PongTests) ... ok test_server_sends_pong_after_connection_is_closed (tests.test_protocol.PongTests) ... ok test_server_sends_pong_after_sending_close (tests.test_protocol.PongTests) ... ok test_server_sends_pong_with_data (tests.test_protocol.PongTests) ... ok test_client_default (tests.test_protocol.TCPCloseTests) ... ok test_client_failed_connecting (tests.test_protocol.TCPCloseTests) ... ok test_client_fails_connection (tests.test_protocol.TCPCloseTests) ... ok test_client_is_connecting (tests.test_protocol.TCPCloseTests) ... ok test_client_receives_close (tests.test_protocol.TCPCloseTests) ... ok test_client_receives_close_then_eof (tests.test_protocol.TCPCloseTests) ... ok test_client_sends_close (tests.test_protocol.TCPCloseTests) ... ok test_server_default (tests.test_protocol.TCPCloseTests) ... ok test_server_failed_connecting (tests.test_protocol.TCPCloseTests) ... ok test_server_fails_connection (tests.test_protocol.TCPCloseTests) ... ok test_server_is_connecting (tests.test_protocol.TCPCloseTests) ... ok test_server_receives_close (tests.test_protocol.TCPCloseTests) ... ok test_server_receives_close_then_eof (tests.test_protocol.TCPCloseTests) ... ok test_server_sends_close (tests.test_protocol.TCPCloseTests) ... ok test_client_receives_fragmented_text (tests.test_protocol.TextTests) ... ok test_client_receives_fragmented_text_over_size_limit (tests.test_protocol.TextTests) ... ok test_client_receives_fragmented_text_without_size_limit (tests.test_protocol.TextTests) ... ok test_client_receives_text (tests.test_protocol.TextTests) ... ok test_client_receives_text_after_receiving_close (tests.test_protocol.TextTests) ... ok test_client_receives_text_over_size_limit (tests.test_protocol.TextTests) ... ok test_client_receives_text_without_size_limit (tests.test_protocol.TextTests) ... ok test_client_receives_unexpected_text (tests.test_protocol.TextTests) ... ok test_client_sends_fragmented_text (tests.test_protocol.TextTests) ... ok test_client_sends_text (tests.test_protocol.TextTests) ... ok test_client_sends_text_after_sending_close (tests.test_protocol.TextTests) ... ok test_client_sends_unexpected_text (tests.test_protocol.TextTests) ... ok test_server_receives_fragmented_text (tests.test_protocol.TextTests) ... ok test_server_receives_fragmented_text_over_size_limit (tests.test_protocol.TextTests) ... ok test_server_receives_fragmented_text_without_size_limit (tests.test_protocol.TextTests) ... ok test_server_receives_text (tests.test_protocol.TextTests) ... ok test_server_receives_text_after_receiving_close (tests.test_protocol.TextTests) ... ok test_server_receives_text_over_size_limit (tests.test_protocol.TextTests) ... ok test_server_receives_text_without_size_limit (tests.test_protocol.TextTests) ... ok test_server_receives_unexpected_text (tests.test_protocol.TextTests) ... ok test_server_sends_fragmented_text (tests.test_protocol.TextTests) ... ok test_server_sends_text (tests.test_protocol.TextTests) ... ok test_server_sends_text_after_sending_close (tests.test_protocol.TextTests) ... ok test_server_sends_unexpected_text (tests.test_protocol.TextTests) ... ok test_server_connection_class (tests.test_server.BackwardsCompatibilityTests) ServerConnection is a deprecated alias for ServerProtocol. ... ok test_accept_and_send_successful_response (tests.test_server.BasicTests) Server accepts a handshake request and sends a successful response. ... ok test_receive_request (tests.test_server.BasicTests) Server receives a handshake request. ... ok test_send_response_after_failed_accept (tests.test_server.BasicTests) Server accepts a handshake request but sends a failed response. ... ok test_send_response_after_reject (tests.test_server.BasicTests) Server rejects a handshake request and sends a failed response. ... ok test_send_response_without_accept_or_reject (tests.test_server.BasicTests) Server doesn't accept or reject and sends a failed response. ... ok test_basic (tests.test_server.HandshakeTests) Handshake succeeds. ... ok test_extension (tests.test_server.HandshakeTests) Server enables an extension when the client offers it. ... ok test_extension_not_enabled (tests.test_server.HandshakeTests) Server doesn't enable an extension when the client doesn't offer it. ... ok test_extension_not_supported (tests.test_server.HandshakeTests) Client offers an extension, but the server doesn't support it. ... ok test_invalid_connection (tests.test_server.HandshakeTests) Handshake fails when the Connection header is invalid. ... ok test_invalid_key (tests.test_server.HandshakeTests) Handshake fails when the Sec-WebSocket-Key header is invalid. ... ok test_invalid_upgrade (tests.test_server.HandshakeTests) Handshake fails when the Upgrade header is invalid. ... ok test_invalid_version (tests.test_server.HandshakeTests) Handshake fails when the Sec-WebSocket-Version header is invalid. ... ok test_missing_connection (tests.test_server.HandshakeTests) Handshake fails when the Connection header is missing. ... ok test_missing_key (tests.test_server.HandshakeTests) Handshake fails when the Sec-WebSocket-Key header is missing. ... ok test_missing_upgrade (tests.test_server.HandshakeTests) Handshake fails when the Upgrade header is missing. ... ok test_missing_version (tests.test_server.HandshakeTests) Handshake fails when the Sec-WebSocket-Version header is missing. ... ok test_multiple_extensions (tests.test_server.HandshakeTests) Server enables several extensions when the client offers them. ... ok test_multiple_extensions_order (tests.test_server.HandshakeTests) Server respects the order of extensions set in its configuration. ... ok test_multiple_key (tests.test_server.HandshakeTests) Handshake fails when the Sec-WebSocket-Key header is repeated. ... ok test_multiple_origin (tests.test_server.HandshakeTests) Handshake fails when checking origins and the Origin header is repeated. ... ok test_multiple_subprotocols (tests.test_server.HandshakeTests) Server enables all of the subprotocols when the client offers them. ... ok test_multiple_supported_extension_parameters (tests.test_server.HandshakeTests) Server supports the same extension with several parameters. ... ok test_multiple_version (tests.test_server.HandshakeTests) Handshake fails when the Sec-WebSocket-Version header is repeated. ... ok test_no_extensions (tests.test_server.HandshakeTests) Handshake succeeds without extensions. ... ok test_no_extensions_supported (tests.test_server.HandshakeTests) Client offers an extension, but the server doesn't support any. ... ok test_no_origin (tests.test_server.HandshakeTests) Handshake fails when checking origin and the Origin header is missing. ... ok test_no_origin_accepted (tests.test_server.HandshakeTests) Handshake succeeds when the lack of an origin is accepted. ... ok test_no_subprotocol_requested (tests.test_server.HandshakeTests) Server expects a subprotocol, but the client doesn't offer it. ... ok test_no_subprotocols (tests.test_server.HandshakeTests) Handshake succeeds without subprotocols. ... ok test_no_subprotocols_supported (tests.test_server.HandshakeTests) Client offers a subprotocol, but the server doesn't support any. ... ok test_origin (tests.test_server.HandshakeTests) Handshake succeeds when checking origin. ... ok test_select_no_subprotocol (tests.test_server.HandshakeTests) Server doesn't enable any subprotocol with select_subprotocol. ... ok test_select_subprotocol (tests.test_server.HandshakeTests) Server enables a subprotocol with select_subprotocol. ... ok test_subprotocol (tests.test_server.HandshakeTests) Server enables a subprotocol when the client offers it. ... ok test_supported_extension_parameters (tests.test_server.HandshakeTests) Client offers an extension with parameters supported by the server. ... ok test_supported_origin (tests.test_server.HandshakeTests) Handshake succeeds when checking origins and the origin is supported. ... ok test_supported_subprotocol (tests.test_server.HandshakeTests) Server enables one of the subprotocols when the client offers it. ... ok test_truncated_key (tests.test_server.HandshakeTests) Handshake fails when the Sec-WebSocket-Key header is truncated. ... ok test_unexpected_origin (tests.test_server.HandshakeTests) Handshake fails when checking origin and the Origin header is unexpected. ... ok test_unsupported_extension_parameters (tests.test_server.HandshakeTests) Client offers an extension with parameters unsupported by the server. ... ok test_unsupported_origin (tests.test_server.HandshakeTests) Handshake succeeds when checking origins and the origin is unsupported. ... ok test_unsupported_subprotocol (tests.test_server.HandshakeTests) Server expects one of the subprotocols, but the client doesn't offer any. ... ok test_bypass_handshake (tests.test_server.MiscTests) ServerProtocol bypasses the opening handshake. ... ok test_custom_logger (tests.test_server.MiscTests) ServerProtocol accepts a logger argument. ... ok test_receive_junk_request (tests.test_server.RequestTests) Server receives a junk handshake request. ... ok test_receive_no_request (tests.test_server.RequestTests) Server receives no handshake request. ... ok test_receive_request (tests.test_server.RequestTests) Server receives a handshake request. ... ok test_receive_truncated_request (tests.test_server.RequestTests) Server receives a truncated handshake request. ... ok test_accept_response (tests.test_server.ResponseTests) accept() creates a successful opening handshake response. ... ok test_reject_response (tests.test_server.ResponseTests) reject() creates a failed opening handshake response. ... ok test_reject_response_supports_int_status (tests.test_server.ResponseTests) reject() accepts an integer status code instead of an HTTPStatus. ... ok test_unexpected_error (tests.test_server.ResponseTests) accept() handles unexpected errors and returns an error response. ... ok test_at_eof_after_feed_data (tests.test_streams.StreamReaderTests) ... ok test_at_eof_after_feed_eof (tests.test_streams.StreamReaderTests) ... ok test_discard (tests.test_streams.StreamReaderTests) ... ok test_feed_data_after_feed_data (tests.test_streams.StreamReaderTests) ... ok test_feed_data_after_feed_eof (tests.test_streams.StreamReaderTests) ... ok test_feed_eof_after_feed_data (tests.test_streams.StreamReaderTests) ... ok test_feed_eof_after_feed_eof (tests.test_streams.StreamReaderTests) ... ok test_read_exact (tests.test_streams.StreamReaderTests) ... ok test_read_exact_need_more_data (tests.test_streams.StreamReaderTests) ... ok test_read_exact_not_enough_data (tests.test_streams.StreamReaderTests) ... ok test_read_line (tests.test_streams.StreamReaderTests) ... ok test_read_line_need_more_data (tests.test_streams.StreamReaderTests) ... ok test_read_line_not_enough_data (tests.test_streams.StreamReaderTests) ... ok test_read_line_too_long (tests.test_streams.StreamReaderTests) ... ok test_read_line_too_long_need_more_data (tests.test_streams.StreamReaderTests) ... ok test_read_to_eof (tests.test_streams.StreamReaderTests) ... ok test_read_to_eof_at_eof (tests.test_streams.StreamReaderTests) ... ok test_read_to_eof_too_long (tests.test_streams.StreamReaderTests) ... ok test_error (tests.test_uri.URITests) ... ok test_resource_name (tests.test_uri.URITests) ... ok test_success (tests.test_uri.URITests) ... ok test_user_info (tests.test_uri.URITests) ... ok test_apply_mask (tests.test_utils.ApplyMaskTests) ... ok test_apply_mask_check_input_types (tests.test_utils.ApplyMaskTests) ... ok test_apply_mask_check_mask_length (tests.test_utils.ApplyMaskTests) ... ok test_apply_mask_memoryview (tests.test_utils.ApplyMaskTests) ... ok test_apply_mask_non_contiguous_memoryview (tests.test_utils.ApplyMaskTests) ... ok test_apply_mask (tests.test_utils.SpeedupsTests) ... ok test_apply_mask_check_input_types (tests.test_utils.SpeedupsTests) ... ok test_apply_mask_check_mask_length (tests.test_utils.SpeedupsTests) ... ok test_apply_mask_memoryview (tests.test_utils.SpeedupsTests) ... ok test_apply_mask_non_contiguous_memoryview (tests.test_utils.SpeedupsTests) ... ok test_accept_key (tests.test_utils.UtilsTests) ... ok test_generate_key (tests.test_utils.UtilsTests) ... ok ---------------------------------------------------------------------- Ran 1819 tests OK (skipped=23) py$(PYV): OK congratulations :)