Changed Nosetests to PyTest