mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #32547 -- Corrected notes about validation in HTML assertions docs.
This commit is contained in:
parent
00b0786de5
commit
ceb4b9ee68
2 changed files with 7 additions and 8 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue