diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-12-02 00:09:13 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-12-02 00:09:13 +0100 |
commit | 93e4622491ff6bed339267cea2a0a98a7af3c8d8 (patch) | |
tree | 22690a9b75e846e50057aba7bd27e617549a47b7 /mediagoblin | |
parent | 8e2af2843f2de273f75cc1351bb87a905a11fb92 (diff) | |
download | mediagoblin-93e4622491ff6bed339267cea2a0a98a7af3c8d8.tar.lz mediagoblin-93e4622491ff6bed339267cea2a0a98a7af3c8d8.tar.xz mediagoblin-93e4622491ff6bed339267cea2a0a98a7af3c8d8.zip |
Expect 404 in unit tests, if we now use 404.
Our unit tests for auth were expecting a 400.
Well, now we give a 404. So expect that!
I'm not completely sure, if the 404 is the right thing
here, but that's another topic.
Diffstat (limited to 'mediagoblin')
-rw-r--r-- | mediagoblin/tests/test_auth.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/tests/test_auth.py b/mediagoblin/tests/test_auth.py index 153c6e53..ee085761 100644 --- a/mediagoblin/tests/test_auth.py +++ b/mediagoblin/tests/test_auth.py @@ -280,16 +280,16 @@ def test_register_views(test_app): template.clear_test_template_context() response = test_app.get( "/auth/forgot_password/verify/?userid=%s&token=total_bs" % unicode( - new_user._id), status=400) - assert response.status == '400 Bad Request' + new_user._id), status=404) + assert_equal(response.status, '404 Not Found') ## Try using an expired token to change password, shouldn't work template.clear_test_template_context() real_token_expiration = new_user['fp_token_expire'] new_user['fp_token_expire'] = datetime.datetime.now() new_user.save() - response = test_app.get("%s?%s" % (path, get_params), status=400) - assert response.status == '400 Bad Request' + response = test_app.get("%s?%s" % (path, get_params), status=404) + assert_equal(response.status, '404 Not Found') new_user['fp_token_expire'] = real_token_expiration new_user.save() |