unittest.TestCase.assertMultiLineEqual()

assertMultiLineEqual(first, second, msg=None)

Test that the multiline string first is equal to the string second. When not equal a diff of the two strings highlighting the differences will be included in the error message. This method is used by default when comparing strings with assertEqual().

New in version 3.1.

doc_python
2016-10-07 17:46:22
Comments
Leave a Comment

Please login to continue.