(self)
| 58 | self.assertEqual(expected_docstring_info, docstring_info) |
| 59 | |
| 60 | def test_one_line_runs_over(self): |
| 61 | # pylint: disable=line-too-long |
| 62 | docstring = """A one line docstring that is both a little too verbose and a little too long |
| 63 | so it runs onto a second line. |
| 64 | """ |
| 65 | # pylint: enable=line-too-long |
| 66 | docstring_info = docstrings.parse(docstring) |
| 67 | expected_docstring_info = DocstringInfo( |
| 68 | summary='A one line docstring that is both a little too verbose and ' |
| 69 | 'a little too long so it runs onto a second line.', |
| 70 | ) |
| 71 | self.assertEqual(expected_docstring_info, docstring_info) |
| 72 | |
| 73 | def test_one_line_runs_over_whitespace(self): |
| 74 | docstring = """ |
nothing calls this directly
no test coverage detected