blob: 3d20b6868c55c6ace2d502c19de6dce4eb94da63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)
|