Method
__init__
(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
Tested by
no test coverage detected