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_seq.py | |
parent | d57e369258a388ee64ad900ee7e975da25ca36ec (diff) | |
download | msgpack-python-593c832ab00372b4a44dd47de94e4c2546fc1193.tar.gz |
Use py.test instead of nosetests.
Diffstat (limited to 'test/test_seq.py')
-rw-r--r-- | test/test_seq.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/test/test_seq.py b/test/test_seq.py index 72e935a..af719b0 100644 --- a/test/test_seq.py +++ b/test/test_seq.py @@ -2,9 +2,6 @@ # coding: utf-8 import six -from nose import main -from nose.tools import * - import io import msgpack @@ -38,13 +35,8 @@ def test_exceeding_unpacker_read_size(): read_count = 0 for idx, o in enumerate(unpacker): - assert_equal(type(o), bytes) - assert_equal(o, gen_binary_data(idx)) + assert type(o) == bytes + assert o == gen_binary_data(idx) read_count += 1 - assert_equal(read_count, NUMBER_OF_STRINGS) - - -if __name__ == '__main__': - main() - #test_exceeding_unpacker_read_size() + assert read_count == NUMBER_OF_STRINGS |