diff options
| author | Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2016-08-02 12:40:57 +0200 |
|---|---|---|
| committer | Juergen Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2016-11-30 10:01:19 +0100 |
| commit | ada58821a68c61d9bc905ce793dd4d0f6b497645 (patch) | |
| tree | 4f9dede65368fcb04155fc8298f3a2381b0705b9 /tests/test_climate.py | |
| parent | 6a3dd2248f24670ad70a28a70e848e33eac651c5 (diff) | |
initial commit
Diffstat (limited to 'tests/test_climate.py')
| -rw-r--r-- | tests/test_climate.py | 29 |
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' + + + + + |
