Fix up form classes and add ResetPasswordFOrm

This commit is contained in:
Matt Wright
2012-05-15 18:43:06 -04:00
parent 0f914d1ea6
commit 19cc30a3c1
4 changed files with 21 additions and 8 deletions
+1 -2
View File
@@ -115,8 +115,7 @@ class DefaultSecurityTests(SecurityTest):
def test_register_valid_user(self):
data = dict(email='dude@lp.com', password='password', password_confirm='password')
r = self.client.post('/register', data=data, follow_redirects=True)
self.assertNotIn('Hello dude@lp.com', r.data)
self.client.post('/register', data=data, follow_redirects=True)
r = self.authenticate('dude@lp.com', 'password')
self.assertIn('Hello dude@lp.com', r.data)