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/util.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/util.py (limited to 'test/util.py') 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] -- cgit