summaryrefslogtreecommitdiff
path: root/qpid/python/tests/codec010.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-05-23 21:40:03 +0000
committerRafael H. Schloming <rhs@apache.org>2008-05-23 21:40:03 +0000
commit99daabac209e7e0d7e624f37e76a33b9e15f71f9 (patch)
tree66754dd617f1b585a65712b44de71054f6ce9a1a /qpid/python/tests/codec010.py
parentcd916eb65ffcd78bf87869980872824cd39be515 (diff)
downloadqpid-python-99daabac209e7e0d7e624f37e76a33b9e15f71f9.tar.gz
QPID-947: added codec and tests for array and list types
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@659671 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/tests/codec010.py')
-rw-r--r--qpid/python/tests/codec010.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/qpid/python/tests/codec010.py b/qpid/python/tests/codec010.py
index bd3f875ac4..c849c1b0c0 100644
--- a/qpid/python/tests/codec010.py
+++ b/qpid/python/tests/codec010.py
@@ -55,3 +55,30 @@ class CodecTest(TestCase):
"long": 2**32,
"none": None,
"map": {"string": "nested map"}})
+
+ def testMapEmpty(self):
+ self.check("map", {})
+
+ def testMapNone(self):
+ self.check("map", None)
+
+ def testList(self):
+ self.check("list", [1, "two", 3.0, -4])
+
+ def testListEmpty(self):
+ self.check("list", [])
+
+ def testListNone(self):
+ self.check("list", None)
+
+ def testArrayInt(self):
+ self.check("array", [1, 2, 3, 4])
+
+ def testArrayString(self):
+ self.check("array", ["one", "two", "three", "four"])
+
+ def testArrayEmpty(self):
+ self.check("array", [])
+
+ def testArrayNone(self):
+ self.check("array", None)