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