summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaio Ariede <caio.ariede@gmail.com>2019-05-23 10:52:32 -0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-05-24 07:27:11 +0200
commit4fb9e7b057507dda1bccd969871ae350f6c68fef (patch)
tree01f8c56fa6ab56f485ba4b701008e7b4e7ca7d80
parentf8b8b00f0197e52f7a0986fae51462be174dbaea (diff)
Doc'd that assertXMLEqual()/assertXMLNotEqual() ignores XML declaration and comments.
-rw-r--r--docs/topics/testing/tools.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 6d37a7421d..dd96981504 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -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)