aboutsummaryrefslogtreecommitdiff
path: root/test/util.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/util.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/util.py')
-rw-r--r--test/util.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/util.py b/test/util.py
new file mode 100644
index 0000000..97566b0
--- /dev/null
+++ b/test/util.py
@@ -0,0 +1,13 @@
+# -*- coding: utf-8 -*-
+
+from collections.abc import Mapping
+
+
+class ConfigMock:
+ def __init__(self, configuration):
+ assert isinstance(configuration, Mapping)
+ assert all(isinstance(x, Mapping) for x in configuration.values())
+ self.configuration = configuration
+
+ def get(self, a, b):
+ return self.configuration[a][b]
bgstack15