def testSpacing(self): """help should honor spacing argument""" apihelper.help(apihelper, spacing=20) self.redirect.seek(0) self.assertEqual(self.redirect.read(), """help Print methods and doc strings. Takes module, class, list, dictionary, or string. """)
def testApiHelper(self): """help should return known result for apihelper""" apihelper.help(apihelper) self.redirect.seek(0) self.assertEqual(self.redirect.read(), """help Print methods and doc strings. Takes module, class, list, dictionary, or string. """)