@task
def test(pattern='*'):
	""" Run Unit Tests """
	# recurse folder for tests
	files = []
	for root, dirs, fnames in os.walk('tests'):
		for fname in fnmatch.filter(fnames, pattern % '%s_tests.py'):
			files.append(osp.join(root, fname))

	# run tests
	nose.main(argv=[''] + files)
dataset/ETHPy150Open alexcepoi/pyscale/pyscale/tools/tasks.py/test/swapped operands of `%`