def test_sending_fails_wrong_address(self):
     """
     Accepts the message for queueing, drops it later
     """
     m = bad_message_wrong_address()
     sendgrid = SendgridProvider()
     self.assertEqual(sendgrid.send_message(m), True)
 def test_no_content(self):
     m = no_content_message()
     sendgrid = SendgridProvider()
     self.assertEqual(sendgrid.send_message(m), False)
 def test_no_recipient_has_cc_bcc(self):
     m = no_recipient_has_cc_bcc()
     sendgrid = SendgridProvider()
     self.assertEqual(sendgrid.send_message(m), False)
 def test_unicode_message(self):
     m = unicode_message()
     sendgrid = SendgridProvider()
     self.assertEqual(sendgrid.send_message(m), True)
 def test_simple_sending_successful(self):
     m = good_message_single_recipient()
     sendgrid = SendgridProvider()
     self.assertEqual(sendgrid.send_message(m), True)