Ejemplo n.º 1
0
 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')
Ejemplo n.º 2
0
 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'