aboutsummaryrefslogtreecommitdiff
path: root/test/test_configuration_working.py
blob: 9bbe2c730d782afca934791c72834e1a611a017a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- coding: utf-8 -*-

import logging

import radicale_auth_ldap
from test.configuration import TEST_CONFIGURATION, VALID_USER, VALID_PASS
from test.util import ConfigMock


def main():
    configuration = ConfigMock(TEST_CONFIGURATION)
    logger = logging.getLogger(__name__)
    auth = radicale_auth_ldap.Auth(configuration, logger)
    assert auth.is_authenticated(VALID_USER, VALID_PASS)

if __name__ == '__main__':
    main()
bgstack15