mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Doc'd that assertXMLEqual()/assertXMLNotEqual() ignores XML declaration and comments.
This commit is contained in:
parent
f8b8b00f01
commit
4fb9e7b057
1 changed files with 3 additions and 0 deletions
|
@ -1645,6 +1645,9 @@ your test suite.
|
|||
syntax differences. When invalid XML is passed in any parameter, an
|
||||
``AssertionError`` is always raised, even if both string are identical.
|
||||
|
||||
XML declaration and comments are ignored. Only the root element and its
|
||||
children are compared.
|
||||
|
||||
Output in case of error can be customized with the ``msg`` argument.
|
||||
|
||||
.. method:: SimpleTestCase.assertXMLNotEqual(xml1, xml2, msg=None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue