ADD: dav_base: some simple test cases.
This commit is contained in:
20
dav_base/tests/test_emails.py
Normal file
20
dav_base/tests/test_emails.py
Normal 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')
|
||||
Reference in New Issue
Block a user