def METHOD_NAME(
    self, mock_exists, mock_env, mock_access
):
    mock_env.return_value = '/usr/local/bin:/usr/bin:/bin'
    mock_exists.return_value = False
    with self._caplog.at_level(logging.DEBUG):
        assert Path.which('file') is None
        print(self._caplog.text)
        assert (
            '"file": in paths "{0}" exists: "False" mode match: '
            'not checked'
        ).format(mock_env.return_value) in self._caplog.text