Fix tests broken for python 3.0 (no u’strings’)

This commit is contained in:
Eric Hennings
2014-01-06 08:33:36 -08:00
parent e1c78ec197
commit 3a6f3ec4c4

View File

@@ -461,8 +461,7 @@ class DjrillMandrillFeatureTests(DjrillBackendMockAPITestCase):
def test_send_attaches_mandrill_response(self): def test_send_attaches_mandrill_response(self):
""" The mandrill_response should be attached to the message when it is sent """ """ The mandrill_response should be attached to the message when it is sent """
response = [{u'status': u'sent', u'_id': u'd2dc8a04fedb463398d2c124fd0f1774', response = [{'mandrill_response': 'would_be_here'}]
u'email': u'someone@example.com', u'reject_reason': None}]
self.mock_post.return_value = self.MockResponse(json=response) self.mock_post.return_value = self.MockResponse(json=response)
msg = mail.EmailMessage('Subject', 'Message', 'from@example.com', ['to1@example.com'],) msg = mail.EmailMessage('Subject', 'Message', 'from@example.com', ['to1@example.com'],)
sent = msg.send() sent = msg.send()