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

Method test_validate_subprotocols

tests/test_headers.py:158–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

156 parse_subprotocol(header)
157
158 def test_validate_subprotocols(self):
159 for subprotocols in [[], ["sip"], ["v1.usp"], ["sip", "v1.usp"]]:
160 with self.subTest(subprotocols=subprotocols):
161 validate_subprotocols(subprotocols)
162
163 def test_validate_subprotocols_invalid(self):
164 for subprotocols, exception in [

Callers

nothing calls this directly

Calls 1

validate_subprotocolsFunction · 0.85

Tested by

no test coverage detected