diff options
Diffstat (limited to 'docs/topics/testing/tools.txt')
| -rw-r--r-- | docs/topics/testing/tools.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index b01dd35b8c..068e452ad0 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -1905,6 +1905,16 @@ your test suite. In older versions, error messages didn't contain the ``haystack``. +.. method:: SimpleTestCase.assertNotInHTML(needle, haystack, msg_prefix="") + + .. versionadded:: 5.1 + + Asserts that the HTML fragment ``needle`` is *not* contained in the + ``haystack``. + + Whitespace in most cases is ignored, and attribute ordering is not + significant. See :meth:`~SimpleTestCase.assertHTMLEqual` for more details. + .. method:: SimpleTestCase.assertJSONEqual(raw, expected_data, msg=None) Asserts that the JSON fragments ``raw`` and ``expected_data`` are equal. |
