summaryrefslogtreecommitdiff
path: root/qpid/python/tests/codec010.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-03-06 16:23:14 +0000
committerRafael H. Schloming <rhs@apache.org>2009-03-06 16:23:14 +0000
commit6c5ccd4ee71158861c08c677f8e3c334125d7d2b (patch)
tree00d1aa959d97b9b647faaf8a6bea4a0ea177a8e4 /qpid/python/tests/codec010.py
parentc2aa1bcbbe94b721b2b34530c910faea15b1c307 (diff)
downloadqpid-python-6c5ccd4ee71158861c08c677f8e3c334125d7d2b.tar.gz
added support for encoding buffers
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@750960 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/tests/codec010.py')
-rw-r--r--qpid/python/tests/codec010.py5
1 files changed, 5 insertions, 0 deletions
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})