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