Beispiel #1
0
 def test_email_params(self):
     SendEmail = tasks._SendEmail()
     task = SendEmail._setUp(
         domain='localhost',
         email_data=self.email_data,
         email_attachments=self.email_attachments,
     )
Beispiel #2
0
 def test_mailgun_route(self):
     SendEmail = tasks._SendEmail()
     task = SendEmail._setUp(
         domain='localhost',
         email_data=self.email_data,
         email_attachments=self.email_attachments,
     )
     self.assertIn('localhost', SendEmail.mailgun_post_route)
Beispiel #3
0
 def test_email_params(self):
     SendEmail = tasks._SendEmail()
     task = SendEmail._setUp(self.mailgun_post_route, self.request_params)
Beispiel #4
0
 def test_send_email_task_submit(self):
     SendEmail = tasks._SendEmail()
     task = SendEmail._setUp(self.mailgun_post_route, self.request_params)
     self.assertIsNotNone(task)
Beispiel #5
0
 def test_mailgun_route(self):
     SendEmail = tasks._SendEmail()
     task = SendEmail._setUp(self.mailgun_post_route, self.request_params)
     self.assertIn(self.TEST_DOMAIN, SendEmail.mailgun_post_route)