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

Method test_force_radio_input

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

Source from the content-addressed store, hash-verified

195 self.assertEqual(form.submit_fields(), [('foo', 'bar')])
196
197 def test_force_radio_input(self):
198 app = self.callFUT()
199 res = app.get('/form.html')
200
201 form = res.forms['radio_input_form']
202
203 form['foo'].force_value('fido')
204 self.assertEqual(form['foo'].value, 'fido')
205 self.assertEqual(form.submit_fields(), [('foo', 'fido')])
206
207 def test_radio_input_order(self):
208 app = self.callFUT()

Callers

nothing calls this directly

Calls 4

callFUTMethod · 0.95
submit_fieldsMethod · 0.80
getMethod · 0.45
force_valueMethod · 0.45

Tested by

no test coverage detected