def test_decode_octet_data_type(self): value = b'\xff' self.assertIsInstance(decode.octet(value)[1], int)
def test_decode_octet_value(self): value = b'\xff' self.assertEqual(decode.octet(value)[1], 255)
def test_decode_octet_bytes_consumed(self): value = b'\xff' self.assertEqual(decode.octet(value)[0], 1)