diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2014-09-18 09:51:22 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2014-09-18 09:51:22 -0230 |
commit | 4723f7bbd3ea2ffb241df26e5736fa5c04589e7b (patch) | |
tree | 1fb506dbb4f76a5e6ce7e9eada7489e19a0560e4 /py/test/Ice/ami/AllTests.py | |
parent | ICE-4891 some minor improvements (diff) | |
download | ice-4723f7bbd3ea2ffb241df26e5736fa5c04589e7b.tar.bz2 ice-4723f7bbd3ea2ffb241df26e5736fa5c04589e7b.tar.xz ice-4723f7bbd3ea2ffb241df26e5736fa5c04589e7b.zip |
ICE-5661 add proxy->begin_ice_getConnection
Diffstat (limited to 'py/test/Ice/ami/AllTests.py')
-rw-r--r-- | py/test/Ice/ami/AllTests.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/py/test/Ice/ami/AllTests.py b/py/test/Ice/ami/AllTests.py index 677ebeed9a2..6442f0df450 100644 --- a/py/test/Ice/ami/AllTests.py +++ b/py/test/Ice/ami/AllTests.py @@ -52,6 +52,10 @@ class ResponseCallback(CallbackBase): test(len(ids) == 2) self.called() + def connection(self, conn): + test(conn != None) + self.called() + def op(self): self.called() @@ -94,6 +98,11 @@ class ResponseCallbackWC(CallbackBase): test(len(ids) == 2) self.called() + def connection(self, conn, cookie): + test(cookie == self._cookie) + test(conn != None) + self.called() + def op(self, cookie): test(cookie == self._cookie) self.called() @@ -324,6 +333,9 @@ def allTests(communicator): result = p.begin_ice_ids(_ctx=ctx) test(len(p.end_ice_ids(result)) == 2) + result = p.begin_ice_getConnection() + test(p.end_ice_getConnection(result) != None) + result = p.begin_op() p.end_op(result) result = p.begin_op(_ctx=ctx) @@ -394,6 +406,11 @@ def allTests(communicator): p.begin_ice_ids(lambda ids: cbWC.ids(ids, cookie), lambda ex: cbWC.ex(ex, cookie), _ctx=ctx) cbWC.check() + p.begin_ice_getConnection(cb.connection, cb.ex) + cb.check() + p.begin_ice_getConnection(lambda conn: cbWC.connection(conn, cookie), lambda ex: cbWC.ex(ex, cookie)) + cbWC.check() + p.begin_op(cb.op, cb.ex) cb.check() p.begin_op(lambda: cbWC.op(cookie), lambda ex: cbWC.ex(ex, cookie)) @@ -487,6 +504,11 @@ def allTests(communicator): i.begin_ice_ids(lambda ids: cbWC.response(ids, cookie), lambda ex: cbWC.ex(ex, cookie)) cbWC.check() + i.begin_ice_getConnection(cb.response, cb.ex) + cb.check() + i.begin_ice_getConnection(lambda conn: cbWC.response(conn, cookie), lambda ex: cbWC.ex(ex, cookie)) + cbWC.check() + i.begin_op(cb.response, cb.ex) cb.check() i.begin_op(lambda: cbWC.response(cookie), lambda ex: cbWC.ex(ex, cookie)) |