From 063f3a42d2a33f336913cb238277ed231266b781 Mon Sep 17 00:00:00 2001 From: Marco Huenseler Date: Fri, 4 Aug 2017 18:54:20 +0200 Subject: add simple integration test --- test/test_configuration_working.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/test_configuration_working.py (limited to 'test/test_configuration_working.py') diff --git a/test/test_configuration_working.py b/test/test_configuration_working.py new file mode 100644 index 0000000..9bbe2c7 --- /dev/null +++ b/test/test_configuration_working.py @@ -0,0 +1,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() -- cgit