def test_app(environ, start_response):
    req = Request(environ, populate_request=False)
    if req.args.get('resource') == 'logo':
        response = logo
    else:
        response = Response(TEMPLATE.render(req=req), mimetype='text/html')
    return response(environ, start_response)
Simple test application that dumps the environment.  You can use
dataset/ETHPy150Open IanLewis/kay/kay/lib/werkzeug/testapp.py/test_app