summaryrefslogtreecommitdiff
path: root/test/test_case.py
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2012-07-04 14:58:36 +0900
committerINADA Naoki <songofacandy@gmail.com>2012-07-04 14:58:36 +0900
commit2122b46b8489f3cf414f5ebb137f76ecc9fd9598 (patch)
treef7b3effb535fb9d8caafc6216602b08cf0df3052 /test/test_case.py
parent4bff55db9fe73e23b6da63a8b34c3679754549de (diff)
downloadmsgpack-python-2122b46b8489f3cf414f5ebb137f76ecc9fd9598.tar.gz
Fix using deprecated api in tests.
Diffstat (limited to 'test/test_case.py')
-rw-r--r--test/test_case.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_case.py b/test/test_case.py
index 2f42316..b88714d 100644
--- a/test/test_case.py
+++ b/test/test_case.py
@@ -3,13 +3,13 @@
from nose import main
from nose.tools import *
-from msgpack import packs, unpacks
+from msgpack import packb, unpackb
def check(length, obj):
- v = packs(obj)
+ v = packb(obj)
assert_equal(len(v), length, "%r length should be %r but get %r" % (obj, length, len(v)))
- assert_equal(unpacks(v), obj)
+ assert_equal(unpackb(v), obj)
def test_1():
for o in [None, True, False, 0, 1, (1 << 6), (1 << 7) - 1, -1,
@@ -70,8 +70,8 @@ def test_array32():
def match(obj, buf):
- assert_equal(packs(obj), buf)
- assert_equal(unpacks(buf), obj)
+ assert_equal(packb(obj), buf)
+ assert_equal(unpackb(buf), obj)
def test_match():
cases = [
@@ -99,7 +99,7 @@ def test_match():
match(v, p)
def test_unicode():
- assert_equal(b'foobar', unpacks(packs('foobar')))
+ assert_equal(b'foobar', unpackb(packb('foobar')))
if __name__ == '__main__':
main()