示例#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"–")
示例#2
0
文件: test_web.py 项目: pri-k/pattern
 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("–"), "–")