From 6a069879e4d88485ad5dccfeeb7acf521abc24f8 Mon Sep 17 00:00:00 2001 From: Nuno Santos Date: Tue, 13 May 2008 15:30:13 +0000 Subject: QPID-1052: Management: session.name matches session id provided by API, handling of lost connections -- applied patch supplied by Ted Ross git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@655915 13f79535-47bb-0310-9956-ffa450edef68 --- python/tests_0-10/management.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'python/tests_0-10') diff --git a/python/tests_0-10/management.py b/python/tests_0-10/management.py index b2ab617244..3ca7284d2a 100644 --- a/python/tests_0-10/management.py +++ b/python/tests_0-10/management.py @@ -63,6 +63,21 @@ class ManagementTest (TestBase010): self.assertEqual (len (systems), 1) mc.removeChannel (mch) + def test_self_session_id (self): + session = self.session + + mc = managementClient (session.spec) + mch = mc.addChannel (session) + + info = mc.syncWaitForStable (mch) + brokerSessions = mc.syncGetObjects (mch, "session") + found = False + for bs in brokerSessions: + if bs.name == info[1]: + found = True + self.assertEqual (found, True) + mc.removeChannel (mch) + def test_standard_exchanges (self): session = self.session -- cgit v1.2.1