diff options
author | Kenneth Anthony Giusti <kgiusti@apache.org> | 2010-04-27 15:19:14 +0000 |
---|---|---|
committer | Kenneth Anthony Giusti <kgiusti@apache.org> | 2010-04-27 15:19:14 +0000 |
commit | 07c5b6e839e23e72d6d107cc7ed979db412aa53d (patch) | |
tree | 3a6d503833a1217487f6e0c6ef9f59c08ae48e32 /qpid/cpp/bindings/qmf/tests/python_console.py | |
parent | f434d868a3a58f7fb469e6d2d4f69aa01b1130d7 (diff) | |
download | qpid-python-07c5b6e839e23e72d6d107cc7ed979db412aa53d.tar.gz |
QPID-2556: fix conversion of signed integers in maps and lists.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@938506 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf/tests/python_console.py')
-rwxr-xr-x | qpid/cpp/bindings/qmf/tests/python_console.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/qpid/cpp/bindings/qmf/tests/python_console.py b/qpid/cpp/bindings/qmf/tests/python_console.py index 883aa8da1a..d8e75cc294 100755 --- a/qpid/cpp/bindings/qmf/tests/python_console.py +++ b/qpid/cpp/bindings/qmf/tests/python_console.py @@ -221,6 +221,23 @@ class QmfInteropTests(TestBase010): self.assertTrue(isinstance(parent.listval[4][3], dict)) self.assertEqual(parent.listval[4][3]["hi"], 10) self.assertEqual(parent.listval[4][3]["lo"], 5) + self.assertEqual(parent.listval[4][3]["neg"], -3) + + # see agent for structure of mapval + + self.assertTrue(isinstance(parent.mapval, dict)) + self.assertEqual(len(parent.mapval), 7) + self.assertEqual(parent.mapval['aLong'], 9999999999) + self.assertEqual(parent.mapval['aInt'], 54321) + self.assertEqual(parent.mapval['aSigned'], -666) + self.assertEqual(parent.mapval['aString'], "A String"), + self.assertEqual(parent.mapval['aFloat'], 3.1415), + self.assertTrue(isinstance(parent.mapval['aMap'], dict)) + self.assertEqual(len(parent.mapval['aMap']), 2) + self.assertEqual(parent.mapval['aMap']['second'], 2) + self.assertTrue(isinstance(parent.mapval['aList'], list)) + self.assertEqual(len(parent.mapval['aList']), 4) + self.assertEqual(parent.mapval['aList'][1], -1) def getProperty(self, msg, name): |