Skip to content

Commit

Permalink
fix: typos in test_backend.py (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
berzi committed Apr 12, 2024
1 parent 1f097ca commit f20fadb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_backend.py
Expand Up @@ -120,7 +120,7 @@ def test_send_mail(self):
send_mail('subject', 'body', from_addr, ['to@example.com'])
message = self.outbox.pop()
mail = email.message_from_string(smart_str(message['RawMessage']['Data']))
self.assertTrue('X-SES-CONFIGURAITON-SET' not in mail.keys())
self.assertTrue('X-SES-CONFIGURATION-SET' not in mail.keys())
self.assertEqual(mail['subject'], 'subject')
self.assertEqual(mail['from'], self._rfc2047_helper(from_addr))
self.assertEqual(mail['to'], 'to@example.com')
Expand All @@ -134,7 +134,7 @@ def test_send_mail_unicode_body(self):
send_mail('Scandinavian', 'Sören & Björn', unicode_from_addr, ['to@example.com'])
message = self.outbox.pop()
mail = email.message_from_string(smart_str(message['RawMessage']['Data']))
self.assertTrue('X-SES-CONFIGURAITON-SET' not in mail.keys())
self.assertTrue('X-SES-CONFIGURATION-SET' not in mail.keys())
self.assertEqual(mail['subject'], 'Scandinavian')
self.assertEqual(mail['from'], self._rfc2047_helper(unicode_from_addr))
self.assertEqual(mail['to'], 'to@example.com')
Expand Down Expand Up @@ -205,7 +205,7 @@ def test_send_mail(self):
send_mail('subject', 'body', unicode_from_addr, ['to@example.com'])
message = self.outbox.pop()
mail = email.message_from_string(smart_str(message['Content']['Raw']['Data']))
self.assertTrue('X-SES-CONFIGURAITON-SET' not in mail.keys())
self.assertTrue('X-SES-CONFIGURATION-SET' not in mail.keys())
self.assertEqual(mail['subject'], 'subject')
self.assertEqual(mail['from'], self._rfc2047_helper(unicode_from_addr))
self.assertEqual(mail['to'], 'to@example.com')
Expand Down

0 comments on commit f20fadb

Please sign in to comment.