code: def expected_error_messages(*error_messages):
      
      def wrapper(func):
          setattr(func, EXPECTED_ERROR_MESSAGES, error_messages)
          return func
      return wrapper
docs: 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``.