summaryrefslogtreecommitdiff
path: root/python/test/Ice/proxy/AllTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/test/Ice/proxy/AllTests.py')
-rw-r--r--python/test/Ice/proxy/AllTests.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/python/test/Ice/proxy/AllTests.py b/python/test/Ice/proxy/AllTests.py
index 1777666cc96..1dd076debfe 100644
--- a/python/test/Ice/proxy/AllTests.py
+++ b/python/test/Ice/proxy/AllTests.py
@@ -663,11 +663,26 @@ def allTests(communicator, collocated):
test(cl.ice_secure(True).ice_fixed(connection).ice_isSecure())
test(cl.ice_facet("facet").ice_fixed(connection).ice_getFacet() == "facet")
test(cl.ice_oneway().ice_fixed(connection).ice_isOneway())
+ ctx = { }
+ ctx["one"] = "hello"
+ ctx["two"] = "world"
+ test(len(cl.ice_fixed(connection).ice_getContext()) == 0);
+ test(len(cl.ice_context(ctx).ice_fixed(connection).ice_getContext()) == 2);
+ test(cl.ice_fixed(connection).ice_getInvocationTimeout() == -1);
+ test(cl.ice_invocationTimeout(10).ice_fixed(connection).ice_getInvocationTimeout() == 10);
test(cl.ice_fixed(connection).ice_getConnection() == connection)
test(cl.ice_fixed(connection).ice_fixed(connection).ice_getConnection() == connection)
test(cl.ice_fixed(connection).ice_getTimeout() == Ice.Unset)
fixedConnection = cl.ice_connectionId("ice_fixed").ice_getConnection()
test(cl.ice_fixed(connection).ice_fixed(fixedConnection).ice_getConnection() == fixedConnection)
+ try:
+ cl.ice_secure(not connection.getEndpoint().getInfo().secure()).ice_fixed(connection).ice_ping();
+ except Ice.NoEndpointException:
+ pass
+ try:
+ cl.ice_datagram().ice_fixed(connection).ice_ping();
+ except Ice.NoEndpointException:
+ pass
else:
try:
cl.ice_fixed(connection)