def test_unpack_int16(): (value, bytes_consumed) = DecodeUtils.unpack_int16(b'\xFF\xFE') assert_equal(bytes_consumed, 2) assert_equal(value, -2)
def test_unpack_int16(): (value, bytes_consumed) = DecodeUtils.unpack_int16(b'\xFF\xFE') assert bytes_consumed == 2 assert value == -2