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

Method test_bad_reserved_bits

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

Source from the content-addressed store, hash-verified

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"]:
130 with self.subTest(data=data):
131 with self.assertRaises(ProtocolError):
132 self.parse(data, mask=False)
133
134 def test_good_opcode(self):
135 for opcode in list(range(0x00, 0x03)) + list(range(0x08, 0x0B)):

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected