Exemplo n.º 1
0
 def test_resend_activation_email_invalid_email(self):
     """
     resend activation invalid
     """
     form_data = {'email': '*****@*****.**', }
     form = ResendActivationForm(form_data)
     self.assertFalse(form.is_valid())
Exemplo n.º 2
0
 def test_resend_activation_email_invalid_email(self):
     """
     resend activation invalid
     """
     form_data = {
         'email': '*****@*****.**',
     }
     form = ResendActivationForm(form_data)
     self.assertFalse(form.is_valid())
Exemplo n.º 3
0
 def test_resend_activation_email(self):
     """
     resend activation
     """
     user = utils.create_user(email="*****@*****.**")
     form_data = {'email': '*****@*****.**', }
     form = ResendActivationForm(form_data)
     self.assertTrue(form.is_valid())
     self.assertEqual(form.get_user(), user)
Exemplo n.º 4
0
 def test_resend_activation_email(self):
     """
     resend activation
     """
     user = utils.create_user(email="*****@*****.**")
     form_data = {
         'email': '*****@*****.**',
     }
     form = ResendActivationForm(form_data)
     self.assertTrue(form.is_valid())
     self.assertEqual(form.get_user(), user)