Fix unit tests for new forget password flow

After changing the password, the login page is now shown.
It contains a message.  (we can't test for that easily
currently.  There is a bug open on this problem.)

At least for the login page being shown now.
This commit is contained in:
Elrond 2012-01-01 19:20:38 +01:00
parent 35149b1124
commit 445d811043

View File

@ -291,7 +291,7 @@ def test_register_views(test_app):
'token': parsed_get_params['token']})
response.follow()
assert template.TEMPLATE_TEST_CONTEXT.has_key(
'mediagoblin/auth/fp_changed_success.html')
'mediagoblin/auth/login.html')
## Verify step 2.2 of password-change works -- login w/ new password success
template.clear_test_template_context()