MCPcopy
hub / github.com/django/django / test_send_using

Method test_send_using

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

Source from the content-addressed store, hash-verified

1906 # Repeat all EmailMessageTests with MAILERS defined.
1907
1908 def test_send_using(self):
1909 email = EmailMessage(to=["to@example.com"])
1910 email.send()
1911 email.send(using="custom")
1912 email.send()
1913 self.assertEqual(mail.outbox[0].sent_using, "default")
1914 self.assertEqual(mail.outbox[1].sent_using, "custom")
1915 self.assertEqual(mail.outbox[2].sent_using, "default")
1916
1917 # RemovedInDjango70Warning.
1918 @ignore_warnings(category=RemovedInDjango70Warning)

Callers

nothing calls this directly

Calls 2

sendMethod · 0.95
EmailMessageClass · 0.90

Tested by

no test coverage detected