diff options
author | Gordon Sim <gsim@apache.org> | 2007-02-09 17:51:35 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-02-09 17:51:35 +0000 |
commit | 1ddbee45e8059e1eb64d94526a6abb8e396643ac (patch) | |
tree | 84dd7dace5ed686eaa5c82df34506cc7dbaa5b46 /python/tests/broker.py | |
parent | e754770e56a9ff0df5d5be73b04ed658cdbc5855 (diff) | |
download | qpid-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.py | 6 |
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... |