Beispiel #1
0
 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")
Beispiel #2
0
    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")