Пример #1
0
 def test_process_with_error(self):
     subject = 'Test email'
     service = BaseEmailService()
     service.subject = subject
     service.template_name = 'test_email.html'
     with self.assertRaises(EmailServiceConfigError):
         service.process()
Пример #2
0
 def test_process_regular(self):
     email = '*****@*****.**'
     subject = 'Test email'
     service = BaseEmailService(recipient_email_list=[email])
     service.subject = subject
     service.template_name = 'test_email.html'
     self.assertTrue(service.process())