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