def METHOD_NAME(self, tmpdir, caplog):
    venv_path = str(tmpdir)
    python_lib_path = os.path.join(venv_path, "lib/python3.7")
    os.makedirs(python_lib_path)
    with mock.patch("bootstrap.is_tails", return_value=True), mock.patch(
        "subprocess.check_output", side_effect=subprocess.CalledProcessError(1, ":o")
    ):
        bootstrap.clean_up_old_tails_venv(venv_path)
        assert os.path.exists(venv_path)