コード例 #1
0
 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)
コード例 #2
0
 def test_dummy(self):
     url = email.parse('dummy://')
     self.assertEqual(url['ENGINE'], 'django.core.mail.backends.dummy.EmailBackend')
コード例 #3
0
 def test_memory(self):
     url = email.parse('memory://')
     self.assertEqual(url['ENGINE'], 'django.core.mail.backends.locmem.EmailBackend')
コード例 #4
0
 def test_file(self):
     url = email.parse('file://')
     self.assertEqual(url['ENGINE'], 'django.core.mail.backends.filebased.EmailBackend')
     self.assertEqual(url['FILE_PATH'], '/')
コード例 #5
0
 def test_console(self):
     url = email.parse('console://')
     self.assertEqual(url['ENGINE'], 'django.core.mail.backends.console.EmailBackend')