summaryrefslogtreecommitdiff
path: root/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
commit8f03d7e9b257509e5463ff0b2cdbc0a42a5514b2 (patch)
tree2f2c9fdb5795e1b80a4b31236d25a43beac4423a /python/tests/codec010.py
parent14ecef96e4595f3392bd8355a2013d86a06c9e08 (diff)
downloadqpid-python-8f03d7e9b257509e5463ff0b2cdbc0a42a5514b2.tar.gz
added support for encoding buffers
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@750960 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests/codec010.py')
-rw-r--r--python/tests/codec010.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/tests/codec010.py b/python/tests/codec010.py
index 099734a040..a1f89dc3f4 100644
--- a/python/tests/codec010.py
+++ b/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})