def test_unpack_int32(): (value, bytes_consumed) = DecodeUtils.unpack_int32(b'\xFF\xFF\xFF\xFE') assert_equal(bytes_consumed, 4) assert_equal(value, -2)
def test_unpack_int32(): (value, bytes_consumed) = DecodeUtils.unpack_int32(b'\xFF\xFF\xFF\xFE') assert bytes_consumed == 4 assert value == -2