You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
582 B
25 lines
582 B
# -*- coding: utf-8 -*-
|
|
|
|
import logging
|
|
import unittest
|
|
|
|
import radicale3_auth_ldap
|
|
from test.configuration import TEST_CONFIGURATION, VALID_USER, VALID_PASS
|
|
from test.util import ConfigMock
|
|
|
|
|
|
class Authentication(unittest.TestCase):
|
|
configuration = None
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
cls.configuration = ConfigMock(TEST_CONFIGURATION)
|
|
|
|
def test_authentication_works(self):
|
|
auth = radicale3_auth_ldap.Auth(self.__class__.configuration)
|
|
self.assertTrue(auth.login(VALID_USER, VALID_PASS))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|