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

Method assertHandshakeSuccess

tests/test_client.py:330–333  ·  view source on GitHub ↗

Assert that the opening handshake succeeded.

(self, client)

Source from the content-addressed store, hash-verified

328 """Test processing of handshake responses to configure the connection."""
329
330 def assertHandshakeSuccess(self, client):
331 """Assert that the opening handshake succeeded."""
332 self.assertEqual(client.state, OPEN)
333 self.assertIsNone(client.handshake_exc)
334
335 def assertHandshakeError(self, client, exc_type, msg):
336 """Assert that the opening handshake failed with the given exception."""

Calls

no outgoing calls

Tested by

no test coverage detected