Skip to content

Commit

Permalink
[2.2.x] Doc'd that assertXMLEqual()/assertXMLNotEqual() ignores XML d…
Browse files Browse the repository at this point in the history
…eclaration and comments.

Backport of 4fb9e7b from master
  • Loading branch information
caioariede authored and felixxm committed May 24, 2019
1 parent efb906c commit 2f0dcd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/topics/testing/tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2f0dcd8

Please sign in to comment.