def test_DecodeIso_set(): assert b.DecodeIso('ascii', 'replace').set(b'', u'\xe9') == b'?'
def test_DecodeIso_view_with_args(): assert b.DecodeIso('utf-8').view(b'caf\xc3\xa9') == u'caf\xe9'
def test_DecodeIso_view(): assert b.DecodeIso().view(b'hello') == 'hello'
def test_DecodeIso_set(): assert b.DecodeIso("ascii", "replace").set(b"", u"\xe9") == b"?"
def test_DecodeIso_view_with_args(): assert b.DecodeIso("utf-8").view(b"caf\xc3\xa9") == u"caf\xe9"
def test_DecodeIso_view(): assert b.DecodeIso().view(b"hello") == "hello"