MCPcopy Create free account
hub / github.com/Pylons/webtest / forms

Method forms

webtest/response.py:29–39  ·  view source on GitHub ↗

Returns a dictionary containing all the forms in the pages as :class:`~webtest.forms.Form` objects. Indexes are both in order (from zero) and by form id (if the form is given an id). See :doc:`forms` for more info on form objects.

(self)

Source from the content-addressed store, hash-verified

27
28 @property
29 def forms(self):
30 """
31 Returns a dictionary containing all the forms in the pages as
32 :class:`~webtest.forms.Form` objects. Indexes are both in
33 order (from zero) and by form id (if the form is given an id).
34
35 See :doc:`forms` for more info on form objects.
36 """
37 if self._forms_indexed is None:
38 self._parse_forms()
39 return self._forms_indexed
40
41 @property
42 def form(self):

Callers

nothing calls this directly

Calls 1

_parse_formsMethod · 0.95

Tested by

no test coverage detected