diff options
author | INADA Naoki <inada-n@klab.com> | 2012-12-29 11:24:25 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2012-12-29 11:24:25 +0900 |
commit | 593c832ab00372b4a44dd47de94e4c2546fc1193 (patch) | |
tree | a24b9b2454f4fe30c2262f7839ec66c286036de6 /test/test_format.py | |
parent | d57e369258a388ee64ad900ee7e975da25ca36ec (diff) | |
download | msgpack-python-593c832ab00372b4a44dd47de94e4c2546fc1193.tar.gz |
Use py.test instead of nosetests.
Diffstat (limited to 'test/test_format.py')
-rw-r--r-- | test/test_format.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/test_format.py b/test/test_format.py index ac08709..5fec0c3 100644 --- a/test/test_format.py +++ b/test/test_format.py @@ -1,12 +1,10 @@ #!/usr/bin/env python # coding: utf-8 -from nose import main -from nose.tools import * from msgpack import unpackb def check(src, should, use_list=0): - assert_equal(unpackb(src, use_list=use_list), should) + assert unpackb(src, use_list=use_list) == should def testSimpleValue(): check(b"\x93\xc0\xc2\xc3", @@ -70,6 +68,3 @@ def testMap(): b"\xdf\x00\x00\x00\x02\xc0\xc2\xc3\xc2", ({}, {None: False}, {True: False, None: False}, {}, {None: False}, {True: False, None: False})) - -if __name__ == '__main__': - main() |