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

Method test_connection_failure

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

Source from the content-addressed store, hash-verified

102 )
103
104 def test_connection_failure(self):
105 output = self.run_main(["ws://localhost:54321"], expected_exit_code=1)
106 self.assertTrue(
107 output.startswith("Failed to connect to ws://localhost:54321: ")
108 )
109
110 def test_no_args(self):
111 output = self.run_main([], expected_exit_code=2)

Callers

nothing calls this directly

Calls 1

run_mainMethod · 0.95

Tested by

no test coverage detected