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

Method test_round_trip

tests/legacy/test_handshake.py:16–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14
15class HandshakeTests(unittest.TestCase):
16 def test_round_trip(self):
17 request_headers = Headers()
18 request_key = build_request(request_headers)
19 response_key = check_request(request_headers)
20 self.assertEqual(request_key, response_key)
21 response_headers = Headers()
22 build_response(response_headers, response_key)
23 check_response(response_headers, request_key)
24
25 @contextlib.contextmanager
26 def assertValidRequestHeaders(self):

Callers

nothing calls this directly

Calls 5

HeadersClass · 0.90
build_requestFunction · 0.85
check_requestFunction · 0.85
build_responseFunction · 0.85
check_responseFunction · 0.85

Tested by

no test coverage detected