aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_edit.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-09-19 16:04:23 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-09-19 16:04:23 -0500
commit74ae6fb0b620c2f899e2c97ba5f6af105103df6f (patch)
tree1fc5a7634299ba221858536a12d3fa8066a1898f /mediagoblin/tests/test_edit.py
parent3dc6184167691d390f016c2b73fd6a9887955102 (diff)
parentf9931418d65c7823e13bc45f647a682ddf3b8632 (diff)
downloadmediagoblin-74ae6fb0b620c2f899e2c97ba5f6af105103df6f.tar.lz
mediagoblin-74ae6fb0b620c2f899e2c97ba5f6af105103df6f.tar.xz
mediagoblin-74ae6fb0b620c2f899e2c97ba5f6af105103df6f.zip
Merge remote-tracking branch 'refs/remotes/rodney757/auth_refactor'
Conflicts: mediagoblin/auth/views.py mediagoblin/edit/forms.py mediagoblin/templates/mediagoblin/edit/edit_account.html
Diffstat (limited to 'mediagoblin/tests/test_edit.py')
-rw-r--r--mediagoblin/tests/test_edit.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/mediagoblin/tests/test_edit.py b/mediagoblin/tests/test_edit.py
index c43a3a42..4740bd2a 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)