def METHOD_NAME(self, tmpdir, caplog):
    venv_path = str(tmpdir)
    python_lib_path = os.path.join(venv_path, "lib/python3.9")
    os.makedirs(python_lib_path)
    with mock.patch("bootstrap.is_tails", return_value=True):
        with mock.patch("subprocess.check_output", return_value="bullseye"):
            bootstrap.clean_up_old_tails_venv(venv_path)
            assert "Tails 4 virtualenv detected" not in caplog.text
            assert os.path.exists(venv_path)