aboutsummaryrefslogtreecommitdiff
path: root/test/test_configuration_working.py
diff options
context:
space:
mode:
authorMarco Huenseler <marcoh.huenseler+git@gmail.com>2017-08-04 18:54:20 +0200
committerMarco Huenseler <marcoh.huenseler+git@gmail.com>2017-08-04 18:54:20 +0200
commit063f3a42d2a33f336913cb238277ed231266b781 (patch)
tree7987e2c29f282ee39c5f75f49a37ce09fba2915d /test/test_configuration_working.py
parentAdd gitignore (diff)
downloadradicale_auth_ldap-063f3a42d2a33f336913cb238277ed231266b781.tar.gz
radicale_auth_ldap-063f3a42d2a33f336913cb238277ed231266b781.tar.bz2
radicale_auth_ldap-063f3a42d2a33f336913cb238277ed231266b781.zip
add simple integration test
Diffstat (limited to 'test/test_configuration_working.py')
-rw-r--r--test/test_configuration_working.py17
1 files changed, 17 insertions, 0 deletions
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()
bgstack15