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

Method __init__

webtest/forms.py:101–108  ·  view source on GitHub ↗
(self, *args, **attrs)

Source from the content-addressed store, hash-verified

99 """Field representing ``<select />`` form element."""
100
101 def __init__(self, *args, **attrs):
102 super().__init__(*args, **attrs)
103 self.options = []
104 self.optionPositions = []
105 # Undetermined yet:
106 self.selectedIndex = None
107 # we have no forced value
108 self._forced_value = NoValue
109
110 def force_value(self, value):
111 """Like setting a value, except forces it (even for, say, hidden

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected