MCPcopy Create free account
hub / github.com/python-websockets/websockets / test_no_subprotocols

Method test_no_subprotocols

tests/test_client.py:564–571  ·  view source on GitHub ↗

Handshake succeeds without subprotocols.

(self)

Source from the content-addressed store, hash-verified

562 self.assertEqual(client.extensions, [Rsv2Extension(), OpExtension()])
563
564 def test_no_subprotocols(self):
565 """Handshake succeeds without subprotocols."""
566 client = ClientProtocol(URI)
567 with alter_and_receive_response(client):
568 pass
569
570 self.assertHandshakeSuccess(client)
571 self.assertIsNone(client.subprotocol)
572
573 def test_no_subprotocol_requested(self):
574 """Client doesn't offer a subprotocol, but the server enables one."""

Callers

nothing calls this directly

Calls 3

ClientProtocolClass · 0.85

Tested by

no test coverage detected