summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2021-03-17 16:33:52 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-03-18 10:21:49 +0100
commitceb4b9ee68dffc6ab0398886f1758f15f037c472 (patch)
treefc9b89dd1ebcb4f768f314d3634031ee62c66214 /docs
parent00b0786de533dbb3f6208d8d5eaddbf765b4e5b8 (diff)
Fixed #32547 -- Corrected notes about validation in HTML assertions docs.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/testing/tools.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 7b3ceb3c81..70b7f2df5c 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1615,7 +1615,7 @@ your test suite.
'<input id="id_accept_terms" type="checkbox" checked>'
)
- ``html1`` and ``html2`` must be valid HTML. An ``AssertionError`` will be
+ ``html1`` and ``html2`` must contain HTML. An ``AssertionError`` will be
raised if one of them cannot be parsed.
Output in case of error can be customized with the ``msg`` argument.
@@ -1626,7 +1626,7 @@ your test suite.
comparison is based on HTML semantics. See
:meth:`~SimpleTestCase.assertHTMLEqual` for details.
- ``html1`` and ``html2`` must be valid HTML. An ``AssertionError`` will be
+ ``html1`` and ``html2`` must contain HTML. An ``AssertionError`` will be
raised if one of them cannot be parsed.
Output in case of error can be customized with the ``msg`` argument.
@@ -1661,8 +1661,7 @@ your test suite.
of ``needle`` occurrences will be strictly verified.
Whitespace in most cases is ignored, and attribute ordering is not
- significant. The passed-in arguments must be valid HTML. See
- :meth:`~SimpleTestCase.assertHTMLEqual` for more details.
+ significant. See :meth:`~SimpleTestCase.assertHTMLEqual` for more details.
.. method:: SimpleTestCase.assertJSONEqual(raw, expected_data, msg=None)