summaryrefslogtreecommitdiff
path: root/py/test/Ice/exceptions/AllTests.py
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2014-07-15 19:45:16 +0000
committerBernard Normier <bernard@zeroc.com>2014-07-15 19:45:16 +0000
commite0494099a097ad64e9c4219d26d07fa5b0d3c3a0 (patch)
tree7e3f40a34dbc0dade17445a0710f7db37eb772f9 /py/test/Ice/exceptions/AllTests.py
parentRemove trailing whitespace in comments in java generated files (diff)
downloadice-e0494099a097ad64e9c4219d26d07fa5b0d3c3a0.tar.bz2
ice-e0494099a097ad64e9c4219d26d07fa5b0d3c3a0.tar.xz
ice-e0494099a097ad64e9c4219d26d07fa5b0d3c3a0.zip
Python test for ICE-5379
Diffstat (limited to 'py/test/Ice/exceptions/AllTests.py')
-rw-r--r--py/test/Ice/exceptions/AllTests.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/py/test/Ice/exceptions/AllTests.py b/py/test/Ice/exceptions/AllTests.py
index 6ea0babeae0..9c3f347a6d5 100644
--- a/py/test/Ice/exceptions/AllTests.py
+++ b/py/test/Ice/exceptions/AllTests.py
@@ -462,6 +462,19 @@ def allTests(communicator):
except Ice.AlreadyRegisteredException:
pass
+ try:
+ adapter.add(obj, communicator.stringToIdentity(""))
+ test(false)
+ except Ice.IllegalIdentityException as ex:
+ test(ex.id.name == "")
+
+ try:
+ adapter.add(None, communicator.stringToIdentity("x"))
+ test(false)
+ except Ice.IllegalServantException:
+ pass
+
+
adapter.remove(communicator.stringToIdentity("x"))
try:
adapter.remove(communicator.stringToIdentity("x"))