def test_str(self): """Tests the docutilize function on a string""" doc = docutilize(dummy_function.__doc__) self.assertEqual(self.expected.strip(), doc.strip())
def test_obj(self): """Tests the docutilize function on an object""" doc = docutilize(dummy_function) self.assertFalse(isinstance(doc, str)) self.assertEqual(self.expected.strip(), doc.__doc__.strip())