mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #35537 -- Changed EmailMessage.attachments and EmailMultiAlternatives.alternatives to use namedtuples.
This makes it more descriptive to pull out the named fields.
This commit is contained in:
@@ -467,7 +467,7 @@ class AdminEmailHandlerTest(SimpleTestCase):
|
||||
msg = mail.outbox[0]
|
||||
self.assertEqual(msg.subject, "[Django] ERROR: message")
|
||||
self.assertEqual(len(msg.alternatives), 1)
|
||||
body_html = str(msg.alternatives[0][0])
|
||||
body_html = str(msg.alternatives[0].content)
|
||||
self.assertIn('<div id="traceback">', body_html)
|
||||
self.assertNotIn("<form", body_html)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user