From b5a18440f45d8218dbdd76d76f7fd1e54d352712 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 9 Jan 2017 19:33:05 +0000 Subject: Extend unit test with code similar to kguiaddons --- tests/GenerateSipBindings/testscript.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/GenerateSipBindings/testscript.py') 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) -- cgit v1.2.1