summaryrefslogtreecommitdiff
path: root/py/test/Ice/operations/ServerAMD.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/test/Ice/operations/ServerAMD.py')
-rwxr-xr-xpy/test/Ice/operations/ServerAMD.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/py/test/Ice/operations/ServerAMD.py b/py/test/Ice/operations/ServerAMD.py
index ad430a75ed6..75c8dcebc9c 100755
--- a/py/test/Ice/operations/ServerAMD.py
+++ b/py/test/Ice/operations/ServerAMD.py
@@ -36,6 +36,22 @@ class MyDerivedClassI(Test.MyDerivedClass):
self.opVoidThread = None
self.opVoidThreadLock = threading.Lock()
+ def ice_isA(self, id, current=None):
+ test(current.mode == Ice.OperationMode.Nonmutating)
+ return Test.MyDerivedClass.ice_isA(self, id, current)
+
+ def ice_ping(self, current=None):
+ test(current.mode == Ice.OperationMode.Nonmutating)
+ Test.MyDerivedClass.ice_ping(self, current)
+
+ def ice_ids(self, current=None):
+ test(current.mode == Ice.OperationMode.Nonmutating)
+ return Test.MyDerivedClass.ice_ids(self, current)
+
+ def ice_id(self, current=None):
+ test(current.mode == Ice.OperationMode.Nonmutating)
+ return Test.MyDerivedClass.ice_id(self, current)
+
def shutdown_async(self, cb, current=None):
self.opVoidThreadLock.acquire()
if self.opVoidThread:
@@ -223,6 +239,14 @@ class MyDerivedClassI(Test.MyDerivedClass):
def opContext_async(self, cb, current=None):
cb.ice_response(current.ctx)
+ def opIdempotent_async(self, cb, current=None):
+ test(current.mode == Ice.OperationMode.Idempotent)
+ cb.ice_response()
+
+ def opNonmutating_async(self, cb, current=None):
+ test(current.mode == Ice.OperationMode.Nonmutating)
+ cb.ice_response()
+
def opDerived_async(self, cb, current=None):
cb.ice_response()