(self)
| 61 | self.check_output(escape, "<&", "<&") |
| 62 | |
| 63 | def test_format_html(self): |
| 64 | self.assertEqual( |
| 65 | format_html( |
| 66 | "{} {} {third} {fourth}", |
| 67 | "< Dangerous >", |
| 68 | mark_safe("<b>safe</b>"), |
| 69 | third="< dangerous again", |
| 70 | fourth=mark_safe("<i>safe again</i>"), |
| 71 | ), |
| 72 | "< Dangerous > <b>safe</b> < dangerous again <i>safe again</i>", |
| 73 | ) |
| 74 | |
| 75 | def test_format_html_no_params(self): |
| 76 | msg = "args or kwargs must be provided." |
nothing calls this directly
no test coverage detected