rduplain/flask-testing — Issue #7: The use of assert is not recommanded for unittesting
Author: rduplain
Created: 2012-02-29 16:40:33+00:00
State: open
Labels: bug, import

It looks like Flask-Testing use assert which is bad

#!python

======================================================================
FAIL: test_login_post (tests.tests.LoginTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/amirouche/projects/flask-door/tests/tests.py", line 50, in test_login_post
self.assertRedirects(response, '/')
File "/home/amirouche/projects/flask-door/Flask_Testing-0.3-py2.7.egg/flaskext/testing.py", line 164, in assertRedirects
assert response.location == "http://localhost" + location
AssertionError

---------------------------------------
- Bitbucket: https://bitbucket.org/danjac/flask-testing/issue/7
- Originally Reported By: [Amirouche Boubekki](http://bitbucket.org/abki)
- Originally Created At: 2011-07-24 17:10:33