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

Method __init__

webtest/debugapp.py:12–19  ·  view source on GitHub ↗
(self, form=None, show_form=False)

Source from the content-addressed store, hash-verified

10 """The WSGI application used for testing"""
11
12 def __init__(self, form=None, show_form=False):
13 if form and os.path.isfile(form):
14 fd = open(form, 'rb')
15 self.form = fd.read()
16 fd.close()
17 else:
18 self.form = form
19 self.show_form = show_form
20
21 def __call__(self, environ, start_response):
22 req = webob.Request(environ)

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected