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

Method test_no_extensions

tests/test_client.py:438–445  ·  view source on GitHub ↗

Handshake succeeds without extensions.

(self)

Source from the content-addressed store, hash-verified

436 )
437
438 def test_no_extensions(self):
439 """Handshake succeeds without extensions."""
440 client = ClientProtocol(URI)
441 with alter_and_receive_response(client):
442 pass
443
444 self.assertHandshakeSuccess(client)
445 self.assertEqual(client.extensions, [])
446
447 def test_offer_extension(self):
448 """Client offers an extension."""

Callers

nothing calls this directly

Calls 3

ClientProtocolClass · 0.85

Tested by

no test coverage detected