(self)
| 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)): |