def Eq(value, message="<STR_LIT>"):
@wraps(Eq)<EOL>def built(_value):<EOL><INDENT>if _value != value:<EOL><INDENT>raise Error(message.format(value))<EOL><DEDENT>return _value<EOL><DEDENT>return built<EOL>
Creates a validator that compares the equality of the given value to
``value``.

A custom message can be specified with ``message``. It will be formatted
with ``value``.