def allowed_info_messages(*info_messages):
    """
    Decorator ignoring defined info messages at the end of test method. As
    param use what
    :py:meth:`~.WebdriverWrapperInfoMixin.get_info_messages`
    returns.

    .. versionadded:: 2.0
    """
    def wrapper(func):
        setattr(func, ALLOWED_INFO_MESSAGES, info_messages)
        return func
    return wrapper
Decorator ignoring defined info messages at the end of test method. As
    param use what
    :py:meth:`~.WebdriverWrapperInfoMixin.get_info_messages`
    returns.

    .. versionadded:: 2.0