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