aboutsummaryrefslogtreecommitdiff
path: root/tests/GenerateSipBindings/testscript.py
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2017-01-09 19:33:05 +0000
committerStephen Kelly <steveire@gmail.com>2017-01-09 20:34:46 +0000
commitb5a18440f45d8218dbdd76d76f7fd1e54d352712 (patch)
tree09d1df5ee8eb327e3209d5c06a7a7a2bea8be3d3 /tests/GenerateSipBindings/testscript.py
parentf63f400787ac42f64fafe006ef19579238067f40 (diff)
downloadextra-cmake-modules-b5a18440f45d8218dbdd76d76f7fd1e54d352712.tar.gz
extra-cmake-modules-b5a18440f45d8218dbdd76d76f7fd1e54d352712.tar.bz2
Extend unit test with code similar to kguiaddons
Diffstat (limited to 'tests/GenerateSipBindings/testscript.py')
-rw-r--r--tests/GenerateSipBindings/testscript.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/GenerateSipBindings/testscript.py b/tests/GenerateSipBindings/testscript.py
index 973d428c..deefb960 100644
--- a/tests/GenerateSipBindings/testscript.py
+++ b/tests/GenerateSipBindings/testscript.py
@@ -91,3 +91,10 @@ assert(r.gotProtectedSlotCalledSignal)
e.emitSignalForPublic()
assert(r.gotPublicSlotCalledSignal)
+
+assert(PyTest.CppLib.SomeNS.EnumValueOne == 1)
+assert(PyTest.CppLib.SomeNS.EnumValueTwo == 2)
+
+assert(PyTest.CppLib.SomeNS.useEnum() == 1.0)
+assert(PyTest.CppLib.SomeNS.useEnum(PyTest.CppLib.SomeNS.EnumValueOne) == 1.0)
+assert(PyTest.CppLib.SomeNS.useEnum(PyTest.CppLib.SomeNS.EnumValueTwo) == 2.0)