summaryrefslogtreecommitdiff
path: root/python/tests/broker.py
diff options
context:
space:
mode:
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...