UPD: dav_base: tests!

This commit is contained in:
2019-03-12 18:13:19 +01:00
parent c38cc0d6e5
commit b246a785b7
11 changed files with 432 additions and 45 deletions

View File

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