Files
django-dav-events/dav_base/tests/test_emails.py

21 lines
577 B
Python

from django.core.exceptions import ImproperlyConfigured
from django.test import SimpleTestCase
from ..emails import AbstractMail
class EmailsTestCase(SimpleTestCase):
def setUp(self):
self.email = AbstractMail()
def test_send(self):
try:
self.email.send()
self.fail('AbstractEmail.send() does not raise an Exception')
except NotImplementedError:
pass
except ImproperlyConfigured:
pass
except Exception:
self.fail('AbstractEmail.send() raised unexpected Exception')