From a61fd402d546f3a9ade8a4525bce7d9ac1d040f5 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Fri, 23 May 2008 21:40:03 +0000 Subject: 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 --- python/tests/codec010.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'python/tests/codec010.py') 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) -- cgit v1.2.1