def test_conversion_rount_trip_from_text(value): assert value == force_text(force_bytes(value, 'utf8'), 'utf8')
def big_endian_to_int(value): return _big_endian_to_int(force_bytes(value))
def test_force_bytes(value, expected): actual = force_bytes(value) assert actual == expected