def test_normalize(self): self.assertEqual(prefix.normalize(u'hi there'), u'HI THERE') self.assertEqual(prefix.normalize(u'salut l\xe0'), u'SALUT LA') self.assertEqual( prefix.normalize( u'L\xf2ng Str\xefng w\xedth l\xf4ts \xf6f \xc3cc\xebnts'), u'LONG STRING WITH LOTS OF ACCENTS')
def test_normalize(self): assert prefix.normalize(u'hi there') == u'HI THERE' assert prefix.normalize(u'salut l\xe0') == u'SALUT LA' assert prefix.normalize( u'L\xf2ng Str\xefng w\xedth l\xf4ts \xf6f \xc3cc\xebnts') == \ u'LONG STRING WITH LOTS OF ACCENTS'