Exemplo n.º 1
0
 def test_has_errors_negative_case(self):
     email = '*****@*****.**'
     subject = 'Test email'
     service = BaseEmailService(recipient_email_list=[email])
     service.subject = subject
     service.template_name = 'test_email.html'
     self.assertFalse(service.has_errors())
Exemplo n.º 2
0
 def test_has_errors_positive_case(self):
     service = BaseEmailService()
     service.is_valid(raise_exception=False)
     self.assertTrue(service.has_errors())