mirror of
https://github.com/wassname/flask-security.git
synced 2026-08-11 11:18:40 +08:00
Refactor forms and import other commonly used functions into package
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user