(self)
| 1132 | self.assertInHTML("<b>This</b>", haystack, 3) |
| 1133 | |
| 1134 | def test_assert_not_in_html(self): |
| 1135 | haystack = "<p><b>Hello</b> <span>there</span>! Hi <span>there</span>!</p>" |
| 1136 | self.assertNotInHTML("<b>Hi</b>", haystack=haystack) |
| 1137 | msg = ( |
| 1138 | "'<b>Hello</b>' unexpectedly found in the following response" |
| 1139 | f"\n{haystack!r}" |
| 1140 | ) |
| 1141 | with self.assertRaisesMessage(AssertionError, msg): |
| 1142 | self.assertNotInHTML("<b>Hello</b>", haystack=haystack) |
| 1143 | |
| 1144 | def test_assert_not_in_html_msg_prefix(self): |
| 1145 | haystack = "<p>Hello</p>" |
nothing calls this directly
no test coverage detected