def test_app(environ, start_response):
 req = Request(environ, populate_request=False)
 if (req.args.get('resource') == 'logo'):
  response = logo
 else:
  response = Response(render_testapp(req), mimetype='text/html')
 return response(environ, start_response)

def test_app ( environ , start_response ) : req = Request ( environ , populate_request = False ) if ( req . args . get ( 'resource' ) == 'logo' ) : response = logo else : response = Response ( render_testapp ( req ) , mimetype = 'text/html' ) return response ( environ , start_response )
simple test application that dumps the environment .