diff options
author | Rafael H. Schloming <rhs@apache.org> | 2008-05-23 21:40:03 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2008-05-23 21:40:03 +0000 |
commit | a61fd402d546f3a9ade8a4525bce7d9ac1d040f5 (patch) | |
tree | 04e2791f26a95cf93d72d26281d84d4b44775e0e /python/tests/codec010.py | |
parent | 3b4d08876f63637cd9ffb28988eb2ec9a9a7f30e (diff) | |
download | qpid-python-a61fd402d546f3a9ade8a4525bce7d9ac1d040f5.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/qpid@659671 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests/codec010.py')
-rw-r--r-- | python/tests/codec010.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/python/tests/codec010.py b/python/tests/codec010.py index bd3f875ac4..c849c1b0c0 100644 --- a/python/tests/codec010.py +++ b/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) |