(self)
| 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): |
nothing calls this directly
no test coverage detected