switch unit testing from nose to py.test