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

Method test_good_opcode

tests/legacy/test_framing.py:118–122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

116 self.decode(encoded)
117
118 def test_good_opcode(self):
119 for opcode in list(range(0x00, 0x03)) + list(range(0x08, 0x0B)):
120 encoded = bytes([0x80 | opcode, 0])
121 with self.subTest(encoded=encoded):
122 self.decode(encoded) # does not raise an exception
123
124 def test_bad_opcode(self):
125 for opcode in list(range(0x03, 0x08)) + list(range(0x0B, 0x10)):

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.95

Tested by

no test coverage detected