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()
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())