'Given a wsgi application wrap it in webtest and call it.'

def _generate_app_response(self, app, headers=None, method='get', path='/', **kwargs):

    return getattr(webtest.TestApp(app), method)(path, headers=(headers or {}), **kwargs)
