def testSendRequestMandrillRemovedField(self): data = { "to_name": "Calvin", "from": "*****@*****.**", "from_name": "Calvin2", "body": "<h1>World!</h1>", "subject": "Hello" } response = email_sender.send_request(data, 'mandrill', True) self.failIf(response)
def testSendRequestMailgun(self): data = { "to": "*****@*****.**", "to_name": "Calvin", "from": "*****@*****.**", "from_name": "Calvin2", "body": "<h1>World!</h1>", "subject": "Hello" } response = email_sender.send_request(data, 'mailgun', True) self.failUnless(response)