http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10699
Revision: 10699 Author: xqt Date: 2012-11-11 12:09:49 +0000 (Sun, 11 Nov 2012) Log Message: ----------- page has been moved, use its new datas
Modified Paths: -------------- trunk/pywikipedia/tests/test_query.py
Modified: trunk/pywikipedia/tests/test_query.py =================================================================== --- trunk/pywikipedia/tests/test_query.py 2012-11-11 11:49:41 UTC (rev 10698) +++ trunk/pywikipedia/tests/test_query.py 2012-11-11 12:09:49 UTC (rev 10699) @@ -137,18 +137,19 @@ 'rvprop': ['ids', 'timestamp', 'user'], 'rvdir': 'newer', 'rvlimit': 1, - 'titles': [catlib.Category(self.site, u'Category:Categories')], + 'titles': [catlib.Category(self.site, + u'Category:Wikipedia categories')], } - expectedresult = {u'pages': {u'794823': + expectedresult = {u'pages': {u'35505592': { u'ns': 14, - u'pageid': 794823, + u'pageid': 35505592, u'revisions': [{ - u'revid': 4494485, - u'user': u'SEWilco', - u'timestamp': u'2004-07-07T18:45:50Z', + u'revid': 487491561, + u'user': u'Cydebot', + u'timestamp': u'2012-04-15T12:17:16Z', }], - u'title': u'Category:Categories', + u'title': u'Category:Wikipedia categories', }, }} self.assertEqualQueryResult(params, expectedresult)