test.SimpleTestCase.assertHTMLNotEqual()

SimpleTestCase.assertHTMLNotEqual(html1, html2, msg=None) [source]

Asserts that the strings html1 and html2 are not equal. The comparison is based on HTML semantics. See assertHTMLEqual() for details.

html1 and html2 must be valid HTML. An AssertionError will be raised if one of them cannot be parsed.

Output in case of error can be customized with the msg argument.

doc_Django
2016-10-09 18:40:05
Comments
Leave a Comment

Please login to continue.