Beispiel #1
0
 def test_fix(self):
     # Assert fix for common Unicode mistakes.
     self.assertEqual(web.fix(u"cliché"), u"cliché")
     self.assertEqual(web.fix("cliché"), u"cliché")
     self.assertEqual(web.fix("cliché"), u"cliché")
     self.assertEqual(web.fix("–"), u"–")
Beispiel #2
0
 def test_fix(self):
     # Assert fix for common Unicode mistakes.
     self.assertEqual(web.fix("cliché"), "cliché")
     self.assertEqual(web.fix("cliché"), "cliché")
     self.assertEqual(web.fix("cliché"), "cliché")
     self.assertEqual(web.fix("–"), "–")