diff options
| author | Nuno Santos <nsantos@apache.org> | 2008-05-13 15:30:13 +0000 |
|---|---|---|
| committer | Nuno Santos <nsantos@apache.org> | 2008-05-13 15:30:13 +0000 |
| commit | 6a069879e4d88485ad5dccfeeb7acf521abc24f8 (patch) | |
| tree | 412f38aa657f21a8d523dac958a5183b82ac7a7c /python/tests_0-10 | |
| parent | 2dc2cc4a04f7cbb0707c4816733b4b47886232a6 (diff) | |
| download | qpid-python-6a069879e4d88485ad5dccfeeb7acf521abc24f8.tar.gz | |
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
Diffstat (limited to 'python/tests_0-10')
| -rw-r--r-- | python/tests_0-10/management.py | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
