(self)
| 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): |
nothing calls this directly
no test coverage detected