MCPcopy Index your code
hub / github.com/python-websockets/websockets / test_receive_binary_message

Method test_receive_binary_message

tests/test_cli.py:67–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 )
66
67 def test_receive_binary_message(self):
68 def binary_handler(websocket):
69 websocket.send(b"tea")
70
71 with run_server(binary_handler) as server:
72 server_uri = get_uri(server)
73 output = self.run_main([server_uri], "")
74 self.assertEqual(
75 remove_commands_and_prompts(output),
76 add_connection_messages("\n< (binary) 746561\n", server_uri),
77 )
78
79 def test_send_message(self):
80 def echo_handler(websocket):

Callers

nothing calls this directly

Calls 5

run_mainMethod · 0.95
run_serverFunction · 0.85
add_connection_messagesFunction · 0.85
get_uriFunction · 0.50

Tested by

no test coverage detected