summaryrefslogtreecommitdiff
path: root/python/test/Ice/scope/AllTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/test/Ice/scope/AllTests.py')
-rw-r--r--python/test/Ice/scope/AllTests.py41
1 files changed, 40 insertions, 1 deletions
diff --git a/python/test/Ice/scope/AllTests.py b/python/test/Ice/scope/AllTests.py
index 2eef2c349a3..b7552d179d5 100644
--- a/python/test/Ice/scope/AllTests.py
+++ b/python/test/Ice/scope/AllTests.py
@@ -7,7 +7,7 @@
#
# **********************************************************************
-import sys, string, re, traceback, Ice, Test
+import sys, string, re, traceback, Ice, Test, Inner
def test(b):
@@ -135,5 +135,44 @@ def allTests(communicator):
test(cmap2["a"].s == s1)
test(cmap3["a"].s == s1)
+ i4 = Inner.Test.Inner2.IPrx.checkedCast(communicator.stringToProxy("i4:default -p 12010"))
+
+ s1 = Test.S(0)
+
+ s2, s3 = i4.opS(s1)
+
+ test(s2 == s1)
+ test(s3 == s1)
+
+ sseq1 = [s1]
+
+ sseq2, sseq3 = i4.opSSeq(sseq1)
+
+ test(sseq2[0] == s1)
+ test(sseq3[0] == s1)
+
+ smap1 = {"a": s1}
+ smap2, smap3 = i4.opSMap(smap1)
+ test(smap2["a"] == s1)
+ test(smap3["a"] == s1)
+
+ c1 = Test.C(s1)
+
+ c2, c3 = i4.opC(c1)
+
+ test(c2.s == s1)
+ test(c3.s == s1)
+
+ cseq1 = [c1]
+ cseq2, cseq3 = i4.opCSeq(cseq1)
+
+ test(cseq2[0].s == s1)
+ test(cseq3[0].s == s1)
+
+ cmap1 = {"a": c1}
+ cmap2, cmap3 = i4.opCMap(cmap1)
+ test(cmap2["a"].s == s1)
+ test(cmap3["a"].s == s1)
+
i1.shutdown()
print("ok")