コード例 #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
ファイル: test_optics.py プロジェクト: cage433/python-lenses
def test_DecodeIso_set():
    assert b.DecodeIso("ascii", "replace").set(b"", u"\xe9") == b"?"
コード例 #5
0
ファイル: test_optics.py プロジェクト: cage433/python-lenses
def test_DecodeIso_view_with_args():
    assert b.DecodeIso("utf-8").view(b"caf\xc3\xa9") == u"caf\xe9"
コード例 #6
0
ファイル: test_optics.py プロジェクト: cage433/python-lenses
def test_DecodeIso_view():
    assert b.DecodeIso().view(b"hello") == "hello"