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

Method test_no_form

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

Source from the content-addressed store, hash-verified

153 return webtest.TestApp(app)
154
155 def test_no_form(self):
156 app = self.callFUT('<html><body></body></html>')
157 res = app.get('/form.html')
158 self.assertRaises(TypeError, lambda: res.form)
159
160 def test_too_many_forms(self):
161 app = self.callFUT(

Callers

nothing calls this directly

Calls 2

callFUTMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected