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