summaryrefslogtreecommitdiff
path: root/python/tests/codec010.py
diff options
context:
space:
mode:
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})