1# The Django test runner will actually configure a different email backend for you.
2# To override it do the following
3
4from django.test.utils import override_settings
5
6@override_settings(
7 EMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend')
8def test_send_email_with_real_SMTP(self):
9 # your code goes here....
10