MCPcopy
hub / github.com/django/django / test_title_output

Method test_title_output

tests/admin_docs/test_utils.py:55–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

parse_docstringFunction · 0.90
parse_rstFunction · 0.90
assertHTMLEqualMethod · 0.80

Tested by

no test coverage detected