Fix change password form

This commit is contained in:
Eskil Heyn Olsen
2013-01-12 15:57:52 -08:00
parent 050ccb847a
commit 508f4d1b52
4 changed files with 8 additions and 8 deletions
+2 -1
View File
@@ -337,7 +337,7 @@ class ChangePasswordTest(SecurityTest):
'new_password': 'newpassword',
'new_password_confirm': 'newpassword'
}, follow_redirects=True)
print r
self.assertNotIn('You successfully changed your password', r.data)
self.assertIn('Invalid password', r.data)
def test_change_password_mismatch(self):
@@ -347,6 +347,7 @@ class ChangePasswordTest(SecurityTest):
'new_password': 'newpassword',
'new_password_confirm': 'notnewpassword'
}, follow_redirects=True)
self.assertNotIn('You successfully changed your password', r.data)
self.assertIn('Passwords do not match', r.data)
def test_change_password_success(self):