(self)
| 89 | ) |
| 90 | |
| 91 | def test_close_connection(self): |
| 92 | def wait_handler(websocket): |
| 93 | with self.assertRaises(ConnectionClosed): |
| 94 | websocket.recv() |
| 95 | |
| 96 | with run_server(wait_handler) as server: |
| 97 | server_uri = get_uri(server) |
| 98 | output = self.run_main([server_uri], "", close_input=True) |
| 99 | self.assertEqual( |
| 100 | remove_commands_and_prompts(output), |
| 101 | add_connection_messages("", server_uri), |
| 102 | ) |
| 103 | |
| 104 | def test_connection_failure(self): |
| 105 | output = self.run_main(["ws://localhost:54321"], expected_exit_code=1) |
nothing calls this directly
no test coverage detected