mirror of
https://github.com/jdupouy/radicale3-auth-ldap.git
synced 2024-10-27 19:14:00 +00:00
14 lines
354 B
Python
14 lines
354 B
Python
# -*- 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]
|