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

Method assertHandshakeSuccess

tests/test_server.py:335–338  ·  view source on GitHub ↗

Assert that the opening handshake succeeded.

(self, server)

Source from the content-addressed store, hash-verified

333 """Test processing of handshake responses to configure the connection."""
334
335 def assertHandshakeSuccess(self, server):
336 """Assert that the opening handshake succeeded."""
337 self.assertEqual(server.state, OPEN)
338 self.assertIsNone(server.handshake_exc)
339
340 def assertHandshakeError(self, server, exc_type, msg):
341 """Assert that the opening handshake failed with the given exception."""

Calls

no outgoing calls

Tested by

no test coverage detected