diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-07-12 12:34:35 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-20 08:25:45 -0700 |
commit | 4710097b27a21d146a4ca8df80a5350146b9d30e (patch) | |
tree | cab5121b2aeb9326a9d24a451ec6aeff186387f7 | |
parent | 5a6e4e13076afddeeec31259eaee7c5af0defb2d (diff) | |
download | mediagoblin-4710097b27a21d146a4ca8df80a5350146b9d30e.tar.lz mediagoblin-4710097b27a21d146a4ca8df80a5350146b9d30e.tar.xz mediagoblin-4710097b27a21d146a4ca8df80a5350146b9d30e.zip |
fix tests to use new change_email view
-rw-r--r-- | mediagoblin/tests/test_edit.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/tests/test_edit.py b/mediagoblin/tests/test_edit.py index d70d0478..c43a3a42 100644 --- a/mediagoblin/tests/test_edit.py +++ b/mediagoblin/tests/test_edit.py @@ -147,26 +147,26 @@ class TestUserEdit(object): # Test email already in db template.clear_test_template_context() test_app.post( - '/edit/account/', { + '/edit/email/', { 'new_email': 'chris@example.com', 'password': 'toast'}) # Check form errors context = template.TEMPLATE_TEST_CONTEXT[ - 'mediagoblin/edit/edit_account.html'] + 'mediagoblin/edit/change_email.html'] assert context['form'].new_email.errors == [ u'Sorry, a user with that email address already exists.'] # Test successful email change template.clear_test_template_context() res = test_app.post( - '/edit/account/', { + '/edit/email/', { 'new_email': 'new@example.com', 'password': 'toast'}) res.follow() # Correct redirect? - assert urlparse.urlsplit(res.location)[2] == '/u/chris/' + assert urlparse.urlsplit(res.location)[2] == '/edit/account/' # Make sure we get email verification and try verifying assert len(mail.EMAIL_TEST_INBOX) == 1 |