Exemple #1
0
 def __str__(self):
     """ Ascii version of the string representation """
     return utils.ascii(unicode(self))
Exemple #2
0
def test_ascii():
    from did.utils import ascii
    assert ascii
    assert ascii("ěščřžýáíé") == "escrzyaie"
    assert ascii(0) == "0"
Exemple #3
0
 def __str__(self):
     """ Ascii version of the string representation """
     return utils.ascii(unicode(self))
Exemple #4
0
def test_ascii():
    from did.utils import ascii
    assert ascii
    assert ascii("ěščřžýáíé") == "escrzyaie"
    assert ascii(0) == "0"