Exemplo n.º 1
0
def test_conversion_rount_trip_from_text(value):
    assert value == force_text(force_bytes(value, 'utf8'), 'utf8')
Exemplo n.º 2
0
def big_endian_to_int(value):
    return _big_endian_to_int(force_bytes(value))
Exemplo n.º 3
0
def test_force_bytes(value, expected):
    actual = force_bytes(value)
    assert actual == expected