summaryrefslogtreecommitdiff
path: root/python/tests/broker.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-02-09 17:51:35 +0000
committerGordon Sim <gsim@apache.org>2007-02-09 17:51:35 +0000
commit1ddbee45e8059e1eb64d94526a6abb8e396643ac (patch)
tree84dd7dace5ed686eaa5c82df34506cc7dbaa5b46 /python/tests/broker.py
parente754770e56a9ff0df5d5be73b04ed658cdbc5855 (diff)
downloadqpid-python-1ddbee45e8059e1eb64d94526a6abb8e396643ac.tar.gz
* qpid/client.py - added channel_pong handler to delegate
* tests/broker.py - simple ping/pong test * tests/queue.py - queue_unbind tests for all standard exchanges git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@505388 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests/broker.py')
-rw-r--r--python/tests/broker.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/tests/broker.py b/python/tests/broker.py
index 2cdfd233f7..a978993891 100644
--- a/python/tests/broker.py
+++ b/python/tests/broker.py
@@ -108,3 +108,9 @@ class BrokerTests(TestBase):
if isinstance(e.args[0], str): self.fail(e)
self.assertConnectionException(504, e.args[0])
+ def test_ping_pong(self):
+ channel = self.channel
+ reply = channel.channel_ping()
+ self.assertEqual(reply.method.klass.name, "channel")
+ self.assertEqual(reply.method.name, "ok")
+ #todo: provide a way to get notified of incoming pongs...