def test_unpack_uint8(): (value, bytes_consumed) = DecodeUtils.unpack_uint8(b'\xDE') assert_equal(bytes_consumed, 1) assert_equal(value, 0xDE)
def test_unpack_uint8(): (value, bytes_consumed) = DecodeUtils.unpack_uint8(b'\xDE') assert bytes_consumed == 1 assert value == 0xDE