(self)
| 397 | |
| 398 | class FunctionDocstringTest(FuncAttrsTest): |
| 399 | def test_set_docstring_attr(self): |
| 400 | self.assertEqual(self.b.__doc__, None) |
| 401 | docstr = "A test method that does nothing" |
| 402 | self.b.__doc__ = docstr |
| 403 | self.F.a.__doc__ = docstr |
| 404 | self.assertEqual(self.b.__doc__, docstr) |
| 405 | self.assertEqual(self.fi.a.__doc__, docstr) |
| 406 | self.cannot_set_attr(self.fi.a, "__doc__", docstr, AttributeError) |
| 407 | |
| 408 | def test_delete_docstring(self): |
| 409 | self.b.__doc__ = "The docstring" |
nothing calls this directly
no test coverage detected