Beispiel #1
0
 def test_parse_wiki_default(self):
     source = self._read_html("WikiStart.default.html")
     results = parse_wiki(source, path_prefix="/trac/wiki")
     self.assertEqual(len(results), 1)
     self.assertEqual(results[0]["remote_version"], 2)
     self.assertEqual(results[0]["name"], "WikiStart")
Beispiel #2
0
 def test_parse_wiki_edgewall(self):
     source = self._read_html("WikiStart.edgewall.html")
     results = parse_wiki(source, path_prefix="/wiki")
     self.assertEqual(len(results), 1)
     self.assertEqual(results[0]["remote_version"], 147)
     self.assertEqual(results[0]["name"], "WikiStart")