summaryrefslogtreecommitdiff
path: root/tests/test_lookup.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_lookup.py')
-rw-r--r--tests/test_lookup.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/test_lookup.py b/tests/test_lookup.py
index 7ff7aa5..47184c0 100644
--- a/tests/test_lookup.py
+++ b/tests/test_lookup.py
@@ -1,6 +1,6 @@
import logging
import logging.config
-from pathlib import Path
+from path import Path
from qface.generator import FileSystem
@@ -10,7 +10,7 @@ logging.basicConfig()
log = logging.getLogger(__name__)
inputPath = Path('tests/in')
-log.debug('input path folder: {0}'.format(inputPath.absolute()))
+log.debug('input path folder: {0}'.format(inputPath.abspath()))
def load_tuner():
@@ -34,3 +34,9 @@ def test_lookup():
# lookup enum
enum = system.lookup('com.pelagicore.ivi.tuner.Waveband')
assert enum is module.lookup('Waveband')
+
+ property = system.lookup('com.pelagicore.ivi.tuner.Tuner#currentStation')
+ assert property.name == 'currentStation'
+
+ operation = system.lookup('com.pelagicore.ivi.tuner.Tuner#nextStation')
+ assert operation.name == 'nextStation'