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