diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/basic_tests.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/basic_tests.py b/test/basic_tests.py new file mode 100644 index 0000000..3d20b68 --- /dev/null +++ b/test/basic_tests.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- + +import unittest + +import radicale_auth_ldap + + +class References(unittest.TestCase): + def test_invalid_credentials_exception_exists(self): + successful_test = False + + try: + import ldap3.core.exceptions + except ImportError: + self.fail('ldap3 module was not found at all!') + try: + raise ldap3.core.exceptions.LDAPInvalidCredentialsResult() + except ldap3.core.exceptions.LDAPInvalidCredentialsResult: + successful_test = True + + self.assertTrue(successful_test)
\ No newline at end of file |