Refactor forms and import other commonly used functions into package

This commit is contained in:
Matt Wright
2012-06-19 11:55:23 -04:00
parent 1f7c2625f7
commit a902530773
4 changed files with 51 additions and 22 deletions
+5 -1
View File
@@ -27,8 +27,12 @@ class DefaultSecurityTests(SecurityTest):
r = self.authenticate(password="")
self.assertIn("Password not provided", r.data)
def test_invalid_user(self):
def test_invalid_email(self):
r = self.authenticate(email="bogus")
self.assertIn("Invalid email address", r.data)
def test_invalid_user(self):
r = self.authenticate(email="bogus@bogus.com")
self.assertIn("Specified user does not exist", r.data)
def test_bad_password(self):