Exemplo n.º 1
0
 def test_not_known_namespace(self):
     self.assertEqual(normalizeTitle("Category:  Births"), "Category: Births")
     self.assertEqual(normalizeTitle("_category:  births___"), "Category: Births")
Exemplo n.º 2
0
 def test_no_namespace(self):
     self.assertEqual(normalizeTitle("python"), "Python")
     self.assertEqual(normalizeTitle("python 3"), "Python 3")
     self.assertEqual(normalizeTitle("python__3"), "Python 3")
Exemplo n.º 3
0
 def test_known_namespace(self):
     self.assertEqual(normalizeTitle("Template:  Births"), "Template:Births")
     self.assertEqual(normalizeTitle(" template:  births_"), "Template:Births")