Used testing domain names in mail tests per rfc2606.

This commit is contained in:
Tim Graham 2015-03-20 12:18:16 -04:00
parent 8219eabbba
commit 7bf775258e
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class SendTestEmailManagementCommand(SimpleTestCase):
"""
The mail is sent with the correct subject and recipient.
"""
recipient = "joe@somewhere.org"
recipient = "joe@example.com"
call_command("sendtestemail", recipient)
self.assertEqual(len(mail.outbox), 1)
mail_message = mail.outbox[0]
@ -28,7 +28,7 @@ class SendTestEmailManagementCommand(SimpleTestCase):
"""
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])
self.assertEqual(len(mail.outbox), 1)
mail_message = mail.outbox[0]