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

Method test_basic

tests/test_client.py:343–349  ·  view source on GitHub ↗

Handshake succeeds.

(self)

Source from the content-addressed store, hash-verified

341 self.assertEqual(str(client.handshake_exc), msg)
342
343 def test_basic(self):
344 """Handshake succeeds."""
345 client = ClientProtocol(URI)
346 with alter_and_receive_response(client):
347 pass
348
349 self.assertHandshakeSuccess(client)
350
351 def test_missing_connection(self):
352 """Handshake fails when the Connection header is missing."""

Callers

nothing calls this directly

Calls 3

ClientProtocolClass · 0.85

Tested by

no test coverage detected