def METHOD_NAME(self, tmpdir, caplog):
    venv = os.path.join(str(tmpdir), "empty_dir")
    args = ""
    with pytest.raises(subprocess.CalledProcessError), mock.patch(
        "subprocess.check_output", side_effect=self.side_effect_venv_bootstrap(venv)
    ):
        bootstrap.envsetup(args, venv)
    assert not os.path.exists(venv)
    assert "Cleaning up virtualenv" in caplog.text