summaryrefslogtreecommitdiff
path: root/python/test/Ice
diff options
context:
space:
mode:
Diffstat (limited to 'python/test/Ice')
-rw-r--r--python/test/Ice/optional/AllTests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/test/Ice/optional/AllTests.py b/python/test/Ice/optional/AllTests.py
index e2c20f64783..b347c10fccc 100644
--- a/python/test/Ice/optional/AllTests.py
+++ b/python/test/Ice/optional/AllTests.py
@@ -72,6 +72,7 @@ def allTests(communicator):
test(mo1.bos is Ice.Unset)
+ ss = Test.SmallStruct()
fs = Test.FixedStruct(78)
vs = Test.VarStruct("hello")
mo1 = Test.MultiOptional(15, True, 19, 78, 99, 5.5, 1.0, "test", Test.MyEnum.MyEnumMember, \
@@ -116,6 +117,14 @@ def allTests(communicator):
test(mo1.ioopd[5] == Test.OneOptionalPrx.uncheckedCast(communicator.stringToProxy("test")))
test(mo1.bos == [False, True, False])
+
+ #
+ # Test generated struct and classes compare with Ice.Unset
+ #
+ test(ss != Ice.Unset)
+ test(fs != Ice.Unset)
+ test(vs != Ice.Unset)
+ test(mo1 != Ice.Unset)
print("ok")