mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
Fix tests broken for python 3.0 (no u’strings’)
This commit is contained in:
@@ -461,8 +461,7 @@ class DjrillMandrillFeatureTests(DjrillBackendMockAPITestCase):
|
||||
|
||||
def test_send_attaches_mandrill_response(self):
|
||||
""" The mandrill_response should be attached to the message when it is sent """
|
||||
response = [{u'status': u'sent', u'_id': u'd2dc8a04fedb463398d2c124fd0f1774',
|
||||
u'email': u'someone@example.com', u'reject_reason': None}]
|
||||
response = [{'mandrill_response': 'would_be_here'}]
|
||||
self.mock_post.return_value = self.MockResponse(json=response)
|
||||
msg = mail.EmailMessage('Subject', 'Message', 'from@example.com', ['to1@example.com'],)
|
||||
sent = msg.send()
|
||||
|
||||
Reference in New Issue
Block a user