aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_climate.py
diff options
context:
space:
mode:
authorJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2016-08-02 12:40:57 +0200
committerJuergen Ryannel <juergen.bocklage-ryannel@pelagicore.com>2016-11-30 10:01:19 +0100
commitada58821a68c61d9bc905ce793dd4d0f6b497645 (patch)
tree4f9dede65368fcb04155fc8298f3a2381b0705b9 /tests/test_climate.py
parent6a3dd2248f24670ad70a28a70e848e33eac651c5 (diff)
initial commit
Diffstat (limited to 'tests/test_climate.py')
-rw-r--r--tests/test_climate.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/test_climate.py b/tests/test_climate.py
new file mode 100644
index 0000000..5e628e4
--- /dev/null
+++ b/tests/test_climate.py
@@ -0,0 +1,29 @@
+from qif.idl.domain import System
+from qif.generator import FileSystem, Generator
+import logging
+import logging.config
+from pathlib import Path
+
+# logging.config.fileConfig('logging.ini')
+logging.basicConfig()
+
+log = logging.getLogger(__name__)
+
+examples = Path('./examples')
+log.debug('examples folder: {0}'.format(examples.absolute()))
+
+
+def load_system():
+ path = examples / 'climate.qif'
+ return FileSystem.parse_document(path)
+
+
+def test_service():
+ system = load_system()
+ service = system.lookup_service('vehicle.climate.ClimateControl')
+ assert service.name == 'ClimateControl'
+
+
+
+
+