diff options
author | Ted Ross <tross@apache.org> | 2009-10-15 21:38:07 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2009-10-15 21:38:07 +0000 |
commit | 6416726d452570462d559632f6d25161c7da31fe (patch) | |
tree | 40e33563d51a892220037c9856a1fafce7a09339 /cpp/bindings/qmf/tests/python_console.py | |
parent | eee3bc498140a3e3e6c2b18e34c579d9c1b7738a (diff) | |
download | qpid-python-6416726d452570462d559632f6d25161c7da31fe.tar.gz |
Bug fix: Console sent get-requests (by objectId) to all agents, not just the agent
identified in the objectId.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@825672 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qmf/tests/python_console.py')
-rwxr-xr-x | cpp/bindings/qmf/tests/python_console.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/bindings/qmf/tests/python_console.py b/cpp/bindings/qmf/tests/python_console.py index bcd3063fe3..e7fa78f3a2 100755 --- a/cpp/bindings/qmf/tests/python_console.py +++ b/cpp/bindings/qmf/tests/python_console.py @@ -140,6 +140,17 @@ class QmfInteropTests(TestBase010): self.assertEqual(result.status, 0) self.assertEqual(result.userid, "guest") + def test_D_get_by_object_id(self): + self.startQmf() + qmf = self.qmf + + parents = qmf.getObjects(_class="parent") + self.assertEqual(len(parents), 1) + parent = parents[0] + + newList = qmf.getObjects(_objectId=parent.getObjectId()) + self.assertEqual(len(newList), 1) + def getProperty(self, msg, name): for h in msg.headers: if hasattr(h, name): return getattr(h, name) |