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

Method test_good_opcode

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

Source from the content-addressed store, hash-verified

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)):
136 data = bytes([0x80 | opcode, 0])
137 with self.subTest(data=data):
138 self.parse(data, mask=False) # does not raise an exception
139
140 def test_bad_opcode(self):
141 for opcode in list(range(0x03, 0x08)) + list(range(0x0B, 0x10)):

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected