def METHOD_NAME(self, mock_run):
    mock_run.return_value.output = ''
    mock_run.return_value.error = ''
    with self._caplog.at_level(logging.WARNING):
        CommandCapabilities.has_option_in_help(
            'command_that_fails', '--non-existing-flag',
            raise_on_error=False
        )