summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/test.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2010-01-06 12:43:48 +0100
committerBenoit Foucher <benoit@zeroc.com>2010-01-06 12:43:48 +0100
commitbc2e4034079842cde62b6b44c4bdcd6a954f4f46 (patch)
tree0afd6dbfade2a57978227193d5dccdc267e89d7b /py/modules/IcePy/test.py
parentbug 4495 - clean up book demos (diff)
downloadice-bc2e4034079842cde62b6b44c4bdcd6a954f4f46.tar.bz2
ice-bc2e4034079842cde62b6b44c4bdcd6a954f4f46.tar.xz
ice-bc2e4034079842cde62b6b44c4bdcd6a954f4f46.zip
Merged Mark's pythonami branch
Diffstat (limited to 'py/modules/IcePy/test.py')
-rw-r--r--py/modules/IcePy/test.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/py/modules/IcePy/test.py b/py/modules/IcePy/test.py
new file mode 100644
index 00000000000..4f88db214e6
--- /dev/null
+++ b/py/modules/IcePy/test.py
@@ -0,0 +1,13 @@
+import Ice
+Ice.loadSlice("../../demo/Ice/hello/Hello.ice")
+c = Ice.initialize()
+p = c.stringToProxy("hello:tcp -p 10000")
+import Demo
+h = Demo.HelloPrx.checkedCast(p)
+r1 = h.begin_sayHello(0)
+
+p2 = c.stringToProxy("hello:tcp -p 10000")
+h2 = Demo.HelloPrx.checkedCast(p2)
+r2 = h2.begin_sayHello(0)
+
+h2.end_sayHello(r1)