summaryrefslogtreecommitdiff
path: root/tests/mail
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-01-02 18:18:19 -0500
committerGitHub <noreply@github.com>2019-01-02 18:18:19 -0500
commit0004daa536890fdb389c895baaa21bea6a1f7073 (patch)
tree9f66a0ce81466d8fa7043e70f0d96b9cc3350473 /tests/mail
parent5bbf31634faad13658dc7bcaeb8139d8625e4349 (diff)
downloaddjango-0004daa536890fdb389c895baaa21bea6a1f7073.tar.gz
Used 4 space hanging indent for dictionaries.
Thanks Mariusz Felisiak for auditing.
Diffstat (limited to 'tests/mail')
-rw-r--r--tests/mail/tests.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/mail/tests.py b/tests/mail/tests.py
index f0f91e7b40..f06e053074 100644
--- a/tests/mail/tests.py
+++ b/tests/mail/tests.py
@@ -323,9 +323,13 @@ class MailTests(HeadersCheckMixin, SimpleTestCase):
)
def test_unicode_headers(self):
- email = EmailMessage("Gżegżółka", "Content", "from@example.com", ["to@example.com"],
- headers={"Sender": '"Firstname Sürname" <sender@example.com>',
- "Comments": 'My Sürname is non-ASCII'})
+ email = EmailMessage(
+ 'Gżegżółka', 'Content', 'from@example.com', ['to@example.com'],
+ headers={
+ 'Sender': '"Firstname Sürname" <sender@example.com>',
+ 'Comments': 'My Sürname is non-ASCII',
+ },
+ )
message = email.message()
self.assertEqual(message['Subject'], '=?utf-8?b?R8W8ZWfFvMOzxYJrYQ==?=')
self.assertEqual(message['Sender'], '=?utf-8?q?Firstname_S=C3=BCrname?= <sender@example.com>')