diff options
Diffstat (limited to 'test/test_case.py')
-rw-r--r-- | test/test_case.py | 12 |
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() |