to add your custom validator into ``ddmock.validators`` module. Otherwise, put it
wherever you want, there are no restrictions.
-Technically speaking, any callable can be a validator.
+By convention, validators are:
+ - Returns the validated value on success, even unmodified. This ensures chainability
+ - Raises ``Invalid`` on failure
All validators will look like this:
# Parent function: loads the parameters
- def ValidatorName(param1, param2,
+ def ValidatorName(param1, param2, msg=None):
# this 'inner' function does the real job and is called by ``Onctuous``