Exemplo n.º 1
0
	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.
""")
Exemplo n.º 2
0
	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.
""")