SimpleTestCase.assertXMLEqual(xml1, xml2, msg=None)
[source]
Asserts that the strings xml1
and xml2
are equal. The comparison is based on XML semantics. Similarly to assertHTMLEqual()
, the comparison is made on parsed content, hence only semantic differences are considered, not syntax differences. When invalid XML is passed in any parameter, an AssertionError
is always raised, even if both string are identical.
Output in case of error can be customized with the msg
argument.
Please login to continue.