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

Method test_payload_too_big

tests/test_frames.py:124–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 )
123
124 def test_payload_too_big(self):
125 with self.assertRaises(PayloadTooBig):
126 self.parse(b"\x82\x7e\x04\x01" + 1025 * b"a", mask=False, max_size=1024)
127
128 def test_bad_reserved_bits(self):
129 for data in [b"\xc0\x00", b"\xa0\x00", b"\x90\x00"]:

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected