1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

[2.2.x] Doc'd that assertXMLEqual()/assertXMLNotEqual() ignores XML declaration and comments.

Backport of 4fb9e7b057507dda1bccd969871ae350f6c68fef from master
This commit is contained in:
Caio Ariede 2019-05-23 10:52:32 -03:00 committed by Mariusz Felisiak
parent efb906cbe4
commit 2f0dcd8238

View File

@ -1641,6 +1641,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)