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

Method test_form_select

tests/test_forms.py:64–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 "the value index should be the one set by value__set")
63
64 def test_form_select(self):
65 form = self.callFUT()
66
67 self.assertEqual(form['select'].options, [
68 ('value1', False, 'Value 1'),
69 ('value2', True, 'Value 2'),
70 ('value3', False, 'Value 3')
71 ])
72 form.select('select', 'value1')
73
74 self.assertEqual(
75 form['select'].value, 'value1',
76 "when using form.select, the input selected value should be "
77 "changed")
78
79 def test_get_field_by_index(self):
80 form = self.callFUT()

Callers

nothing calls this directly

Calls 2

callFUTMethod · 0.95
selectMethod · 0.45

Tested by

no test coverage detected