blob: 1a2135afee957adb36f1819896dc99e304b447a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
from qface.generator import FileSystem
import logging
import logging.config
from path import Path
# logging.config.fileConfig('logging.ini')
logging.basicConfig()
log = logging.getLogger(__name__)
inputPath = Path('tests/in')
log.debug('input path folder: {0}'.format(inputPath.abspath()))
def load_system():
path = inputPath / 'com.pelagicore.ivi.climate.qface'
return FileSystem.parse_document(path)
def test_interface():
system = load_system()
interface = system.lookup('com.pelagicore.ivi.climate.ClimateControl')
assert interface.name == 'ClimateControl'
|