summaryrefslogtreecommitdiff
path: root/test/test_sequnpack.py
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2013-10-20 20:28:32 +0900
committerINADA Naoki <inada-n@klab.com>2013-10-20 20:28:32 +0900
commit96bcd76f49afd00f5b7def1ff7cfd002a7fa477d (patch)
treeba89ca218c7c3f0463d451254ed23eed48b4fe6a /test/test_sequnpack.py
parentaa68c9b8330b130d600b22ec47d5c3841499b536 (diff)
downloadmsgpack-python-96bcd76f49afd00f5b7def1ff7cfd002a7fa477d.tar.gz
Packing ExtType and some cleanup
Diffstat (limited to 'test/test_sequnpack.py')
-rw-r--r--test/test_sequnpack.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/test_sequnpack.py b/test/test_sequnpack.py
index abc447a..af66b78 100644
--- a/test/test_sequnpack.py
+++ b/test/test_sequnpack.py
@@ -85,16 +85,3 @@ def test_readbytes():
assert unpacker.read_bytes(3) == b'oob'
assert unpacker.unpack() == ord(b'a')
assert unpacker.unpack() == ord(b'r')
-
-def test_unpack_one():
- unpacker = Unpacker()
- unpacker.feed('\xda\x00\x03abc')
- assert unpacker.unpack_one() == 'abc'
- #
- unpacker = Unpacker()
- unpacker.feed('\xda\x00\x03abcd')
- py.test.raises(ExtraData, "unpacker.unpack_one()")
- #
- unpacker = Unpacker()
- unpacker.feed('\xda\x00\x03ab')
- py.test.raises(UnpackValueError, "unpacker.unpack_one()")