MCPcopy
hub / github.com/django/django / test_send

Method test_send

tests/mail/tests.py:1854–1864  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1852 email.send(fail_silently=True)
1853
1854 def test_send(self):
1855 email = EmailMessage(to=["to@example.com"])
1856 email.send()
1857 self.assertEqual(mail.outbox[0].to, ["to@example.com"])
1858
1859 # RemovedInDjango70Warning.
1860 if not mailers._is_configured:
1861 self.assertIsNone(mail.outbox[0].sent_using)
1862 return
1863
1864 self.assertEqual(mail.outbox[0].sent_using, "default")
1865
1866 # RemovedInDjango70Warning.
1867 def test_connection_arg_deprecated(self):

Callers

nothing calls this directly

Calls 2

sendMethod · 0.95
EmailMessageClass · 0.90

Tested by

no test coverage detected