summaryrefslogtreecommitdiff
path: root/test/test_buffer.py
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2012-12-29 11:24:25 +0900
committerINADA Naoki <inada-n@klab.com>2012-12-29 11:24:25 +0900
commit593c832ab00372b4a44dd47de94e4c2546fc1193 (patch)
treea24b9b2454f4fe30c2262f7839ec66c286036de6 /test/test_buffer.py
parentd57e369258a388ee64ad900ee7e975da25ca36ec (diff)
downloadmsgpack-python-593c832ab00372b4a44dd47de94e4c2546fc1193.tar.gz
Use py.test instead of nosetests.
Diffstat (limited to 'test/test_buffer.py')
-rw-r--r--test/test_buffer.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/test_buffer.py b/test/test_buffer.py
index 785fb60..04cc02d 100644
--- a/test/test_buffer.py
+++ b/test/test_buffer.py
@@ -1,16 +1,13 @@
#!/usr/bin/env python
# coding: utf-8
-from nose import main
-from nose.tools import *
from msgpack import packb, unpackb
+
def test_unpack_buffer():
from array import array
buf = array('b')
buf.fromstring(packb(('foo', 'bar')))
obj = unpackb(buf, use_list=1)
- assert_equal([b'foo', b'bar'], obj)
+ assert [b'foo', b'bar'] == obj
-if __name__ == '__main__':
- main()