I\'m writing per the following, in which I try to produce a decent error message when comparing two multiline blocks of Unicode text. The interior method that does the compa
You can pass the desired message when creating the exception.
raise AssertionError(line1 + ' != ' + line2)
Hope this helps.