def test_mwGetAPIAndIndex(self): tests = [ # Alone wikis ['http://archiveteam.org', 'http://archiveteam.org/api.php', 'http://archiveteam.org/index.php'], ['http://skilledtests.com/wiki/', 'http://skilledtests.com/wiki/api.php', 'http://skilledtests.com/wiki/index.php'], # Editthis wikifarm # It has a page view limit # Gamepedia wikifarm ['http://dawngate.gamepedia.com', 'http://dawngate.gamepedia.com/api.php', 'http://dawngate.gamepedia.com/index.php'], # Neoseeker wikifarm #['http://digimon.neoseeker.com', 'http://digimon.neoseeker.com/w/api.php', 'http://digimon.neoseeker.com/w/index.php'], # Orain wikifarm #['http://mc.orain.org', 'http://mc.orain.org/w/api.php', 'http://mc.orain.org/w/index.php'], # Referata wikifarm # ['http://wikipapers.referata.com', 'http://wikipapers.referata.com/w/api.php', 'http://wikipapers.referata.com/w/index.php'], # ShoutWiki wikifarm ['http://commandos.shoutwiki.com', 'http://commandos.shoutwiki.com/w/api.php', 'http://commandos.shoutwiki.com/w/index.php'], # Wiki-site wikifarm #['http://minlingo.wiki-site.com', 'http://minlingo.wiki-site.com/api.php', 'http://minlingo.wiki-site.com/index.php'], # Wikkii wikifarm # It seems offline ] for wiki, api, index in tests: print 'Testing', wiki api2, index2 = mwGetAPIAndIndex(wiki) self.assertEqual(api, api2) self.assertEqual(index, index2)
def test_mwGetAPIAndIndex(self): tests = [ # Alone wikis [ 'http://archiveteam.org', 'http://archiveteam.org/api.php', 'http://archiveteam.org/index.php' ], [ 'http://skilledtests.com/wiki/', 'http://skilledtests.com/wiki/api.php', 'http://skilledtests.com/wiki/index.php' ], # Editthis wikifarm # It has a page view limit # Gamepedia wikifarm [ 'http://dawngate.gamepedia.com', 'http://dawngate.gamepedia.com/api.php', 'http://dawngate.gamepedia.com/index.php' ], # Gentoo wikifarm [ 'http://wiki.gentoo.org', 'http://wiki.gentoo.org/api.php', 'http://wiki.gentoo.org/index.php' ], # Neoseeker wikifarm #['http://digimon.neoseeker.com', 'http://digimon.neoseeker.com/w/api.php', 'http://digimon.neoseeker.com/w/index.php'], # Orain wikifarm #['http://mc.orain.org', 'http://mc.orain.org/w/api.php', 'http://mc.orain.org/w/index.php'], # Referata wikifarm [ 'http://wikipapers.referata.com', 'http://wikipapers.referata.com/w/api.php', 'http://wikipapers.referata.com/w/index.php' ], # ShoutWiki wikifarm [ 'http://commandos.shoutwiki.com', 'http://commandos.shoutwiki.com/w/api.php', 'http://commandos.shoutwiki.com/w/index.php' ], # Wiki-site wikifarm #['http://minlingo.wiki-site.com', 'http://minlingo.wiki-site.com/api.php', 'http://minlingo.wiki-site.com/index.php'], # Wikkii wikifarm # It seems offline ] for wiki, api, index in tests: print 'Testing', wiki api2, index2 = mwGetAPIAndIndex(wiki) self.assertEqual(api, api2) self.assertEqual(index, index2)