def test_unormalize_record(self): normalizer = UnicodeNormalizer(attr_index=1) record = ('a1', u'bépoèàÀêùï') self.assertEqual(['a1',u'bepoeaaeui'], normalizer.normalize(record))
def test_unormalize(self): normalizer = UnicodeNormalizer() self.assertEqual(normalizer.normalize(u'bépoèàÀêùï'), u'bepoeaaeui')