Use py.test instead of nosetests.

This commit is contained in:
INADA Naoki 2012-12-29 11:24:25 +09:00
parent d57e369258
commit 593c832ab0
10 changed files with 77 additions and 134 deletions

View file

@ -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