jenkins-bot has submitted this change and it was merged.
Change subject: Basic Page.__repr__ test ......................................................................
Basic Page.__repr__ test
Change-Id: Ie4c444a6abe16cfb03b1774696d8b722ae8063cf --- M tests/page_tests.py 1 file changed, 11 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, but someone else must approve Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/page_tests.py b/tests/page_tests.py index 7ffdb6d..c9f02e2 100644 --- a/tests/page_tests.py +++ b/tests/page_tests.py @@ -366,6 +366,17 @@ pickle.dumps(mainpage) self.assertTrue(True) # No exception thrown!
+ def testRepr(self): + s = repr(mainpage) + self.assertType(s, str) + + def testReprUnicode(self): + site = pywikibot.Site('ar', 'wikipedia') + page = pywikibot.Page(site, 'Main Page') + page = page.toggleTalkPage() + s = repr(page) + self.assertType(s, str) + # methods that still need tests implemented or expanded:
# def autoFormat(self):
pywikibot-commits@lists.wikimedia.org