mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Used testing domain names in mail tests per rfc2606.
This commit is contained in:
parent
8219eabbba
commit
7bf775258e
@ -17,7 +17,7 @@ class SendTestEmailManagementCommand(SimpleTestCase):
|
|||||||
"""
|
"""
|
||||||
The mail is sent with the correct subject and recipient.
|
The mail is sent with the correct subject and recipient.
|
||||||
"""
|
"""
|
||||||
recipient = "joe@somewhere.org"
|
recipient = "joe@example.com"
|
||||||
call_command("sendtestemail", recipient)
|
call_command("sendtestemail", recipient)
|
||||||
self.assertEqual(len(mail.outbox), 1)
|
self.assertEqual(len(mail.outbox), 1)
|
||||||
mail_message = mail.outbox[0]
|
mail_message = mail.outbox[0]
|
||||||
@ -28,7 +28,7 @@ class SendTestEmailManagementCommand(SimpleTestCase):
|
|||||||
"""
|
"""
|
||||||
The mail may be sent with multiple recipients.
|
The mail may be sent with multiple recipients.
|
||||||
"""
|
"""
|
||||||
recipients = ["joe@somewhere.org", "jane@elsewhere.net"]
|
recipients = ["joe@example.com", "jane@example.com"]
|
||||||
call_command("sendtestemail", recipients[0], recipients[1])
|
call_command("sendtestemail", recipients[0], recipients[1])
|
||||||
self.assertEqual(len(mail.outbox), 1)
|
self.assertEqual(len(mail.outbox), 1)
|
||||||
mail_message = mail.outbox[0]
|
mail_message = mail.outbox[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user