def test_smtp(self): for test in EMAIL_SMTP_TESTS: url = email.parse(test[0]) self.assertEqual(url['ENGINE'], 'django.core.mail.backends.smtp.EmailBackend') for k, v in test[1].items(): self.assertEqual(url[k], v)
def test_dummy(self): url = email.parse('dummy://') self.assertEqual(url['ENGINE'], 'django.core.mail.backends.dummy.EmailBackend')
def test_memory(self): url = email.parse('memory://') self.assertEqual(url['ENGINE'], 'django.core.mail.backends.locmem.EmailBackend')
def test_file(self): url = email.parse('file://') self.assertEqual(url['ENGINE'], 'django.core.mail.backends.filebased.EmailBackend') self.assertEqual(url['FILE_PATH'], '/')
def test_console(self): url = email.parse('console://') self.assertEqual(url['ENGINE'], 'django.core.mail.backends.console.EmailBackend')