MCPcopy Index your code
hub / github.com/Pylons/webtest / test_button_submit

Method test_button_submit

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

Source from the content-addressed store, hash-verified

120 self.assertEqual(form.get('checkbox', index=2).value, '30')
121
122 def test_button_submit(self):
123 form = self.callFUT(formid='multiple_buttons_form')
124 display = form.submit('action')
125 self.assertIn(u("action=deactivate"), display, display)
126
127 def test_button_submit_by_index(self):
128 form = self.callFUT(formid='multiple_buttons_form')

Callers

nothing calls this directly

Calls 3

callFUTMethod · 0.95
uFunction · 0.90
submitMethod · 0.80

Tested by

no test coverage detected