@task
@cmdopts([
    ('file=', 'f', 'File to test.')
])
def testf(options):
    """Test a specific file for Python 2/3 with all flags turned on."""
    tell("Unit tests for specific file")
    print(options)
    sh('py.test-3.4 -vs --doctest-modules --cov %s %s' % (options.file, options.file))
    sh('py.test-2.7 -vs --doctest-modules --cov-report html --cov %s %s' % (options.file, options.file))
dataset/ETHPy150Open gdanezis/petlib/pavement.py/testf/original