예제 #1
0
 def test_ignoring_special_characters(self):
     titles = [
         u'hello?',
         u'hello!',
         u'he,llo',
         u'(hello)',
     ]
     for t in titles:
         self.assertEqual(u'hello', WikiPage.normalize_title(t))
예제 #2
0
 def test_ignoring_special_characters(self):
     titles = [
         u'hello?',
         u'hello!',
         u'he,llo',
         u'(hello)',
     ]
     for t in titles:
         self.assertEqual(u'hello', WikiPage.normalize_title(t))
예제 #3
0
 def test_ignoring_articles(self):
     titles = [
         u'the hello there',
         u'a hello there',
         u'hello the there',
         u'hello a there',
         u'hello there the',
         u'hello there a',
     ]
     for t in titles:
         self.assertEqual(u'hellothere', WikiPage.normalize_title(t))
예제 #4
0
 def test_ignoring_articles(self):
     titles = [
         u'the hello there',
         u'a hello there',
         u'hello the there',
         u'hello a there',
         u'hello there the',
         u'hello there a',
     ]
     for t in titles:
         self.assertEqual(u'hellothere', WikiPage.normalize_title(t))