From 6416726d452570462d559632f6d25161c7da31fe Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Thu, 15 Oct 2009 21:38:07 +0000 Subject: 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 --- cpp/bindings/qmf/tests/python_console.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cpp/bindings/qmf/tests/python_console.py') 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) -- cgit v1.2.1