webdriverwrapper/errors.py
def expected_error_messages(*error_messages):
    """
    Decorator expecting defined error messages at the end of test method. As
    param use what
    :py:meth:`~.WebdriverWrapperErrorMixin.get_error_messages`
    returns.

    .. versionadded:: 2.0
        Before this decorator was called ``ShouldBeError``.
    """
    def wrapper(func):
        setattr(func, EXPECTED_ERROR_MESSAGES, error_messages)
        return func
    return wrapper

    Decorator expecting defined error messages at the end of test method. As
    param use what
    :py:meth:`~.WebdriverWrapperErrorMixin.get_error_messages`
    returns.

    .. versionadded:: 2.0
        Before this decorator was called ``ShouldBeError``.
    
Decorator expecting defined error messages at the end of test method. As
param use what
Decorator expecting defined error messages at the end of test method . As param use what
def expected_error_messages(*error_messages):
    def wrapper(func):
        setattr(func, EXPECTED_ERROR_MESSAGES, error_messages)
        return func
    return wrapper
def expected_error_messages ( * error_messages ) : def wrapper ( func ) : setattr ( func , EXPECTED_ERROR_MESSAGES , error_messages ) return func return wrapper
Decorator expecting defined error messages at the end of test method.
Decorator expecting defined error messages at the end of test method .
"""
    Decorator expecting defined error messages at the end of test method. As
    param use what
    :py:meth:`~.WebdriverWrapperErrorMixin.get_error_messages`
    returns.

    .. versionadded:: 2.0
        Before this decorator was called ``ShouldBeError``.
    """
py
`~.WebdriverWrapperErrorMixin.get_error_messages`
returns.

: 2.0
Before this decorator was called ``ShouldBeError``.
` ~ . WebdriverWrapperErrorMixin . get_error_messages ` returns . : 2 . 0 Before this decorator was called ` ` ShouldBeError ` ` .