jarus / flask-testing

Unittest extensions for Flask
http://pythonhosted.org/Flask-Testing/
Other
501 stars 110 forks source link

Optional message arguments for assertRedirects and assertContext #84

Closed jcomo closed 8 years ago

jcomo commented 8 years ago

This change adds optional message arguments for assertRedirects and assertContext to be consistent with the rest of the assertion methods in the library. Addresses #83

There is also a change to add a better message for a non redirect within assertRedirects. Right before submitting this PR, I saw an open PR that includes a similar change. It looked like it had been sitting there for a while so I included the commit in this diff, but I'm happy to pull it out if needed.