SimpleTestCase.assertFieldOutput(fieldclass, valid, invalid, field_args=None, field_kwargs=None, empty_value='') [source]
Asserts that a form field behaves correctly with various inputs.
Parameters:
fieldclass – the class of the field to be tested.
valid – a dictionary mapping valid inputs to their expected cleaned values.
invalid – a dictionary mapping invalid inputs to one or more raised error messages.
field_args – the args passed to instantiate the field.
field_kwargs – the kwargs