watson.form.validators

class watson.form.validators.SuppliedValues(message='"{value}" is not a valid option.')[source]

Validate that a value exists in the list of supplied values.

Example:

validator = Length(1, 10)
validator('Test')  # True
validator('Testing maximum')  # raises ValueError
__init__(message='"{value}" is not a valid option.')[source]