Esempio n. 1
0
 def test_validate_invalid_email_format(self):
     # Ensure invalid email format throws error.
     form = LoginForm(email='unknown', password='******')
     self.assertFalse(form.validate())
Esempio n. 2
0
 def test_validate_success_login_form(self):
     # Ensure correct data validates.
     form = LoginForm(email='*****@*****.**', password='******')
     self.assertTrue(form.validate())