MCPcopy
hub / github.com/django/django / test_parse_rst_view_case_sensitive

Method test_parse_rst_view_case_sensitive

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

Source from the content-addressed store, hash-verified

105 self.assertEqual(stderr.getvalue(), "")
106
107 def test_parse_rst_view_case_sensitive(self):
108 source = ":view:`myapp.views.Index`"
109 rendered = (
110 '<p><a class="reference external" '
111 'href="/admindocs/views/myapp.views.Index/">myapp.views.Index</a></p>'
112 )
113 self.assertHTMLEqual(parse_rst(source, "view"), rendered)
114
115 def test_parse_rst_template_case_sensitive(self):
116 source = ":template:`Index.html`"

Callers

nothing calls this directly

Calls 2

parse_rstFunction · 0.90
assertHTMLEqualMethod · 0.80

Tested by

no test coverage detected