The Form class is accessible via the paste.fixture module.
Set the value of the named field. If there is 0 or multiple fields by that name, it is an error.
Setting the value of a <select> selects the given option (and confirms it is an option). Setting radio fields does the same. Checkboxes get boolean values. You cannot set hidden fields or buttons.
Use .set() if there is any ambiguity and you must provide an index.
Get the named/indexed field object, or default if no field is found.
Like .set(), except also confirms the target is a <select>.
Submits the form. If name is given, then also select that button (using index to disambiguate)``.
Any extra keyword arguments are passed to the .get() or .post() method.
Return a list of [(name, value), ...] for the current state of the form.
See the source for more information.