def assertMultiLineEqual(self, first, second, msg=None):
self.assertIsInstance(first, str,<EOL>'<STR_LIT>')<EOL>self.assertIsInstance(second, str,<EOL>'<STR_LIT>')<EOL>if first != second:<EOL><INDENT>if (len(first) > self._diffThreshold or<EOL>len(second) > self._diffThreshold):<EOL><INDENT>self._baseAssertEqual(first, second, msg)<EOL><DEDENT>firstlines = first.splitlines(True)<EOL>secondlines = second.splitlines(True)<EOL>if len(firstlines) == <NUM_LIT:1> and first.strip('<STR_LIT:\r\n>') == first:<EOL><INDENT>firstlines = [first + '<STR_LIT:\n>']<EOL>secondlines = [second + '<STR_LIT:\n>']<EOL><DEDENT>standardMsg = '<STR_LIT>' % (safe_repr(first, True),<EOL>safe_repr(second, True))<EOL>diff = '<STR_LIT:\n>' + '<STR_LIT>'.join(difflib.ndiff(firstlines, secondlines))<EOL>standardMsg = self._truncateMessage(standardMsg, diff)<EOL>self.fail(self._formatMessage(msg, standardMsg))<EOL><DEDENT>
Assert that two multi-line strings are equal.