@task
@virtualenv(dir=r"test_env/pltest")
def venv_unit_tests(quiet=False):
    """ Run all the unit tests in a Python 2.7 venv py.test context, and produce coverage report. """
    tell("venv Unit tests")
    files = " ".join(match_files())
    # sh('py.test-2.7 -v --doctest-modules --cov-report html --cov petlib ' + files)
    # sh('py.test-2.7 -v --doctest-modules ' + files)
    sh("pip install %s --upgrade" % get_latest_dist(), capture=quiet)
    sh("paver unit_tests")
dataset/ETHPy150Open gdanezis/petlib/pavement.py/venv_unit_tests/original