From 6c5ccd4ee71158861c08c677f8e3c334125d7d2b Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Fri, 6 Mar 2009 16:23:14 +0000 Subject: added support for encoding buffers git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750960 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/tests/codec010.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qpid/python/tests/codec010.py') diff --git a/qpid/python/tests/codec010.py b/qpid/python/tests/codec010.py index 099734a040..a1f89dc3f4 100644 --- a/qpid/python/tests/codec010.py +++ b/qpid/python/tests/codec010.py @@ -48,6 +48,11 @@ class CodecTest(TestCase): def testMapBinary(self): self.check("map", {"binary": "\x7f\xb4R^\xe5\xf0:\x89\x96E1\xf6\xfe\xb9\x1b\xf5"}) + def testMapBuffer(self): + s = "\x7f\xb4R^\xe5\xf0:\x89\x96E1\xf6\xfe\xb9\x1b\xf5" + dec = self.check("map", {"buffer": buffer(s)}, False) + assert dec["buffer"] == s + def testMapInt(self): self.check("map", {"int": 3}) -- cgit v1.2.1