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

Method callFUT

tests/test_forms.py:17–21  ·  view source on GitHub ↗
(self, filename='form_inputs.html', formid='simple_form')

Source from the content-addressed store, hash-verified

15class TestForms(unittest.TestCase):
16
17 def callFUT(self, filename='form_inputs.html', formid='simple_form'):
18 dirname = os.path.join(os.path.dirname(__file__), 'html')
19 app = DebugApp(form=os.path.join(dirname, filename), show_form=True)
20 resp = webtest.TestApp(app).get('/form.html')
21 return resp.forms[formid]
22
23 def test_set_submit_field(self):
24 form = self.callFUT()

Callers 15

test_set_submit_fieldMethod · 0.95
test_buttonMethod · 0.95
test_force_selectMethod · 0.95
test_form_selectMethod · 0.95
test_upload_fieldsMethod · 0.95
test_reprMethod · 0.95

Calls 2

DebugAppClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected