Пример #1
0
def test_DecodeIso_set():
    assert b.DecodeIso('ascii', 'replace').set(b'', u'\xe9') == b'?'
Пример #2
0
def test_DecodeIso_view_with_args():
    assert b.DecodeIso('utf-8').view(b'caf\xc3\xa9') == u'caf\xe9'
Пример #3
0
def test_DecodeIso_view():
    assert b.DecodeIso().view(b'hello') == 'hello'
Пример #4
0
def test_DecodeIso_set():
    assert b.DecodeIso("ascii", "replace").set(b"", u"\xe9") == b"?"
Пример #5
0
def test_DecodeIso_view_with_args():
    assert b.DecodeIso("utf-8").view(b"caf\xc3\xa9") == u"caf\xe9"
Пример #6
0
def test_DecodeIso_view():
    assert b.DecodeIso().view(b"hello") == "hello"