def test_unpack_int64(): test_bytes = b'\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFE' (value, bytes_consumed) = DecodeUtils.unpack_int64(test_bytes) assert_equal(bytes_consumed, 8) assert_equal(value, -2)
def test_unpack_int64(): test_bytes = b'\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFE' (value, bytes_consumed) = DecodeUtils.unpack_int64(test_bytes) assert bytes_consumed == 8 assert value == -2