MCPcopy
hub / github.com/django/django / test_str

Method test_str

tests/forms_tests/tests/test_media.py:121–131  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

119 )
120
121 def test_str(self):
122 self.assertHTMLEqual(
123 str(Stylesheet("path/to/css")),
124 '<link href="http://media.example.com/static/path/to/css"'
125 ' rel="stylesheet">',
126 )
127 self.assertHTMLEqual(
128 str(Stylesheet("path/to/css", media="all")),
129 '<link href="http://media.example.com/static/path/to/css"'
130 ' media="all" rel="stylesheet">',
131 )
132
133 def test_render_with_attrs(self):
134 asset = Stylesheet("/path/to/css")

Callers

nothing calls this directly

Calls 2

StylesheetClass · 0.90
assertHTMLEqualMethod · 0.80

Tested by

no test coverage detected