(self)
| 53 | self.assertEqual(metadata, {"some_metadata": "some data"}) |
| 54 | |
| 55 | def test_title_output(self): |
| 56 | title, description, metadata = parse_docstring(self.docstring) |
| 57 | title_output = parse_rst(title, "model", "model:admindocs") |
| 58 | self.assertIn("TITLE", title_output) |
| 59 | title_rendered = ( |
| 60 | "<p>This __doc__ output is required for testing. I copied this " |
| 61 | 'example from\n<a class="reference external" ' |
| 62 | 'href="/admindocs/models/admindocs/">admindocs</a> documentation. ' |
| 63 | "(TITLE)</p>\n" |
| 64 | ) |
| 65 | self.assertHTMLEqual(title_output, title_rendered) |
| 66 | |
| 67 | def test_description_output(self): |
| 68 | title, description, metadata = parse_docstring(self.docstring) |
nothing calls this directly
no test coverage detected