is it possible to show the assertion values that failed? It shows the traceback and what kind of exception was throw but it would more practical to know which values failed.
Example:
assert result.file == file
AssertionError
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
assert result.file == file, "%s != %s" % (result.file, file,)That’s why ugly
self.assert<Foo>methods were introduced inunittest.TestCaseinstead of nice and short asserts:self.assert<Foo>methods know how to display failure messages.By the way, I thought that nose do some black magic so in simple cases
assert a == bshould show meaningful error message.