jdupouy_radicale3-auth-ldap/test/basic_tests.py
2017-12-03 20:33:05 +01:00

21 lines
566 B
Python

# -*- 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)