def teste_associar_nomes_inexistentes(self): pares = associar_nomes(self.latin1) de_para = dict(pares) self.assertEqual(de_para["\x7f"], "<no such name>") self.assertEqual(de_para["\x80"], "<no such name>")
def teste_associar_nomes_inexistentes(self): pares = associar_nomes(self.latin1) de_para = dict(pares) self.assertEqual(de_para['\x7f'], '<no such name>') self.assertEqual(de_para['\x80'], '<no such name>')
def teste_associar_nomes_existentes(self): pares = associar_nomes(self.latin1) de_para = dict(pares) self.assertEqual(de_para["A"], "LATIN CAPITAL LETTER A") self.assertEqual(de_para["ÿ"], "LATIN SMALL LETTER Y WITH DIAERESIS") self.assertEqual(de_para["ã"], "LATIN SMALL LETTER A WITH TILDE")
def teste_associar_nomes_existentes(self): pares = associar_nomes(self.latin1) de_para = dict(pares) self.assertEqual(de_para['A'], 'LATIN CAPITAL LETTER A') self.assertEqual(de_para['ÿ'], 'LATIN SMALL LETTER Y WITH DIAERESIS') self.assertEqual(de_para['ã'], 'LATIN SMALL LETTER A WITH TILDE')