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))
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))
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))
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))