def callFUT(self, body): app = DebugApp(form=to_bytes(body)) return webtest.TestApp(app)
def callFUT(self, filename='form_inputs.html'): dirname = os.path.join(os.path.dirname(__file__), 'html') app = DebugApp(form=os.path.join(dirname, filename), show_form=True) return webtest.TestApp(app)
def callFUT(self, filename='form_inputs.html'): dirname = os.path.join(os.path.dirname(__file__), 'html') app = DebugApp(form=os.path.join(dirname, filename), show_form=True) resp = webtest.TestApp(app).get('/form.html') return resp.forms['simple_form']
def callFUT(self): return webtest.TestApp(DebugApp())