ADD: dav_base: some simple test cases.

This commit is contained in:
2019-03-07 17:46:36 +01:00
parent 530d1e5683
commit be7d93a34e
5 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from ..emails import AbstractMail
class EmailsTestCase(TestCase):
def setUp(self):
self.email = AbstractMail()
def test_send(self):
try:
self.email.send()
self.assertTrue(False, 'AbstractEmail.send() does not raise an Exception')
except NotImplementedError:
pass
except ImproperlyConfigured:
pass
except Exception:
self.assertTrue(False, 'AbstractEmail.send() raised unexpected Exception')