diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-07-08 17:17:12 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-16 10:28:48 -0700 |
commit | af665c4eb9dfb53ef9ac28567f7f3806ed313093 (patch) | |
tree | e82d356f4c89cb04cb4b5c469ba45a3685e1eb56 /mediagoblin/tests/test_edit.py | |
parent | aeae6cc29099c4bea84bbfd006615104ba719b1e (diff) | |
download | mediagoblin-af665c4eb9dfb53ef9ac28567f7f3806ed313093.tar.lz mediagoblin-af665c4eb9dfb53ef9ac28567f7f3806ed313093.tar.xz mediagoblin-af665c4eb9dfb53ef9ac28567f7f3806ed313093.zip |
moved change_pass to basic_auth and fixed some typos with the moving of forgot pass
Diffstat (limited to 'mediagoblin/tests/test_edit.py')
-rw-r--r-- | mediagoblin/tests/test_edit.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/mediagoblin/tests/test_edit.py b/mediagoblin/tests/test_edit.py index d70d0478..581af4ac 100644 --- a/mediagoblin/tests/test_edit.py +++ b/mediagoblin/tests/test_edit.py @@ -56,41 +56,6 @@ class TestUserEdit(object): self.login(test_app) - def test_change_password(self, test_app): - """Test changing password correctly and incorrectly""" - self.login(test_app) - - # test that the password can be changed - template.clear_test_template_context() - res = test_app.post( - '/edit/password/', { - 'old_password': 'toast', - 'new_password': '123456', - }) - res.follow() - - # Did we redirect to the correct page? - assert urlparse.urlsplit(res.location)[2] == '/edit/account/' - - # test_user has to be fetched again in order to have the current values - test_user = User.query.filter_by(username=u'chris').first() - assert auth.check_password('123456', test_user.pw_hash) - # Update current user passwd - self.user_password = '123456' - - # test that the password cannot be changed if the given - # old_password is wrong - template.clear_test_template_context() - test_app.post( - '/edit/password/', { - 'old_password': 'toast', - 'new_password': '098765', - }) - - test_user = User.query.filter_by(username=u'chris').first() - assert not auth.check_password('098765', test_user.pw_hash) - - def test_change_bio_url(self, test_app): """Test changing bio and URL""" self.login(test_app) |