From dc6068ce7a6bd0d9467886b44cd6252ba491e615 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 28 Aug 2009 22:03:26 +0000 Subject: Major work in the QMF engine. - The console framework now establishes connectivity with the broker. - The Ruby binding for console is tracking the engine development. - Overall improvements (thread safety in Ruby, etc.) have been added. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@809042 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/qmf/tests/python_console.py | 12 ++++++++++++ 1 file changed, 12 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 365f2ac33a..bcd3063fe3 100755 --- a/cpp/bindings/qmf/tests/python_console.py +++ b/cpp/bindings/qmf/tests/python_console.py @@ -128,6 +128,18 @@ class QmfInteropTests(TestBase010): self.assertEqual(parent.int16val, -1000) self.assertEqual(parent.int8val, -100) + def test_D_userid_for_method(self): + self.startQmf(); + qmf = self.qmf + + parents = qmf.getObjects(_class="parent") + self.assertEqual(len(parents), 1) + parent = parents[0] + + result = parent.probe_userid() + self.assertEqual(result.status, 0) + self.assertEqual(result.userid, "guest") + def getProperty(self, msg, name): for h in msg.headers: if hasattr(h, name): return getattr(h, name) -- cgit v1.2.1