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

Method test_accept_key

tests/test_utils.py:19–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 self.assertEqual(len(base64.b64decode(key.encode())), 16)
18
19 def test_accept_key(self):
20 self.assertEqual(accept_key(KEY), ACCEPT)
21
22
23class ApplyMaskTests(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

accept_keyFunction · 0.90

Tested by

no test coverage detected