Пример #1
0
 def callFUT(self, body):
     app = DebugApp(form=to_bytes(body))
     return webtest.TestApp(app)
Пример #2
0
 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)
Пример #3
0
 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']
Пример #4
0
 def callFUT(self):
     return webtest.TestApp(DebugApp())