Exemplo n.º 1
0
 def __str__(self):
     """ Ascii version of the string representation """
     return utils.ascii(unicode(self))
Exemplo n.º 2
0
def test_ascii():
    from did.utils import ascii
    assert ascii
    assert ascii("ěščřžýáíé") == "escrzyaie"
    assert ascii(0) == "0"
Exemplo n.º 3
0
Arquivo: base.py Projeto: barraq/did
 def __str__(self):
     """ Ascii version of the string representation """
     return utils.ascii(unicode(self))
Exemplo n.º 4
0
def test_ascii():
    from did.utils import ascii
    assert ascii
    assert ascii("ěščřžýáíé") == "escrzyaie"
    assert ascii(0) == "0"