(self)
| 65 | self.assertHTMLEqual(title_output, title_rendered) |
| 66 | |
| 67 | def test_description_output(self): |
| 68 | title, description, metadata = parse_docstring(self.docstring) |
| 69 | description_output = parse_rst(description, "model", "model:admindocs") |
| 70 | description_rendered = ( |
| 71 | '<p>Display an individual <a class="reference external" ' |
| 72 | 'href="/admindocs/models/myapp.mymodel/">myapp.MyModel</a>.</p>\n' |
| 73 | '<p><strong>Context</strong></p>\n<p><tt class="docutils literal">' |
| 74 | 'RequestContext</tt></p>\n<dl class="docutils">\n<dt><tt class="' |
| 75 | 'docutils literal">mymodel</tt></dt>\n<dd>An instance of <a class="' |
| 76 | 'reference external" href="/admindocs/models/myapp.mymodel/">' |
| 77 | "myapp.MyModel</a>.</dd>\n</dl>\n<p><strong>Template:</strong></p>" |
| 78 | '\n<p><a class="reference external" href="/admindocs/templates/' |
| 79 | 'myapp/my_template.html/">myapp/my_template.html</a> (DESCRIPTION)' |
| 80 | "</p>\n" |
| 81 | ) |
| 82 | self.assertHTMLEqual(description_output, description_rendered) |
| 83 | |
| 84 | def test_initial_header_level(self): |
| 85 | header = "should be h3...\n\nHeader\n------\n" |
nothing calls this directly
no test coverage detected