def test_fixdoc(self): # Put here until better place for miscellaneous test. def func(): "docstring" run.fixdoc(func, "more") self.assertEqual(func.__doc__, "docstring\n\nmore") func.__doc__ = None run.fixdoc(func, "more") self.assertEqual(func.__doc__, "more")
def test_fixdoc(self): def func(): "docstring" run.fixdoc(func, "more") self.assertEqual(func.__doc__, "docstring\n\nmore") func.__doc__ = None run.fixdoc(func, "more") self.assertEqual(func.__doc__, "more")