(self)
| 1142 | self.assertNotInHTML("<b>Hello</b>", haystack=haystack) |
| 1143 | |
| 1144 | def test_assert_not_in_html_msg_prefix(self): |
| 1145 | haystack = "<p>Hello</p>" |
| 1146 | msg = ( |
| 1147 | "1 != 0 : Prefix: '<p>Hello</p>' unexpectedly found in the following " |
| 1148 | f"response\n{haystack!r}" |
| 1149 | ) |
| 1150 | with self.assertRaisesMessage(AssertionError, msg): |
| 1151 | self.assertNotInHTML("<p>Hello</p>", haystack=haystack, msg_prefix="Prefix") |
| 1152 | |
| 1153 | |
| 1154 | class JSONEqualTests(SimpleTestCase): |
nothing calls this directly
no test coverage detected