diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-05-10 16:45:22 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-05-10 16:45:22 -0700 |
commit | 485691562a75595eda00af35f5235f6fc22fa36c (patch) | |
tree | 4eaf48ac7512239a47d97e533cd3da1a75084f29 /py/test/Ice/slicing/exceptions/ServerAMD.py | |
parent | * C++ implementation for compact/sliced formats (diff) | |
download | ice-485691562a75595eda00af35f5235f6fc22fa36c.tar.bz2 ice-485691562a75595eda00af35f5235f6fc22fa36c.tar.xz ice-485691562a75595eda00af35f5235f6fc22fa36c.zip |
C++ bug fixes; adding more Python tests
Diffstat (limited to 'py/test/Ice/slicing/exceptions/ServerAMD.py')
-rwxr-xr-x | py/test/Ice/slicing/exceptions/ServerAMD.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/py/test/Ice/slicing/exceptions/ServerAMD.py b/py/test/Ice/slicing/exceptions/ServerAMD.py index 8137633df6c..426550025dd 100755 --- a/py/test/Ice/slicing/exceptions/ServerAMD.py +++ b/py/test/Ice/slicing/exceptions/ServerAMD.py @@ -102,6 +102,41 @@ class TestI(Test.TestIntf): umd2.umd2 = "UnknownMostDerived2.umd2" cb.ice_exception(umd2) + def unknownMostDerived2AsBaseCompact_async(self, cb, current=None): + umd2 = Test.UnknownMostDerived2() + umd2.b = "UnknownMostDerived2.b" + umd2.ui = "UnknownMostDerived2.ui" + umd2.umd2 = "UnknownMostDerived2.umd2" + cb.ice_exception(umd2) + + def relayKnownPreservedAsBase_async(self, cb, r, current=None): + try: + r.knownPreservedAsBase() + test(False) + except Ice.Exception as ex: + cb.ice_exception(ex) + + def relayKnownPreservedAsKnownPreserved_async(self, cb, r, current=None): + try: + r.knownPreservedAsKnownPreserved() + test(False) + except Ice.Exception as ex: + cb.ice_exception(ex) + + def relayUnknownPreservedAsBase_async(self, cb, r, current=None): + try: + r.unknownPreservedAsBase() + test(False) + except Ice.Exception as ex: + cb.ice_exception(ex) + + def relayUnknownPreservedAsKnownPreserved_async(self, cb, r, current=None): + try: + r.unknownPreservedAsKnownPreserved() + test(False) + except Ice.Exception as ex: + cb.ice_exception(ex) + def run(args, communicator): properties = communicator.getProperties() properties.setProperty("Ice.Warn.Dispatch", "0") |