1 # **********************************************************************
3 # Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 # This copy of Ice is licensed to you under the terms described in the
6 # ICE_LICENSE file included in this distribution.
8 # **********************************************************************
10 import Ice
, Test
, threading
14 raise RuntimeError('test assertion failed')
19 self
._cond
= threading
.Condition()
24 while not self
._called
:
36 class Callback(CallbackBase
):
37 def sent(self
, sentSynchronously
):
40 def noException(self
, ex
):
43 def onewaysNewAMI(communicator
, proxy
):
45 p
= Test
.MyClassPrx
.uncheckedCast(proxy
.ice_oneway())
48 p
.begin_ice_ping(None, cb
.noException
, cb
.sent
)
52 p
.begin_ice_isA(Test
.MyClass
.ice_staticId())
70 p
.begin_opVoid(None, cb
.noException
, cb
.sent
)
74 p
.begin_opIdempotent(None, cb
.noException
, cb
.sent
)
78 p
.begin_opNonmutating(None, cb
.noException
, cb
.sent
)
82 p
.begin_opByte(0xff, 0x0f)