jarus/flask-testing — pull request #50 by eprikazc (2014-05-17 07:58:15+00:00)
Title: Improve error message generated by assertRedirects

At the moment exception thrown by assertRedirects is somewhat obscure:

"AssertionError: False is not true".

It would be nicer to have actual status code in the message. This change addresses it. Now it is:

"AssertionError: not found in (301, 302)"
(where is actual response status, like 200).