(self)
| 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") |
nothing calls this directly
no test coverage detected