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