def get(self):
    self.response.out.write('hi')
if __name__ == '__main__':
    application = webapp.WSGIApplication([('.*', IndexHandler)], debug=True)
urls = ['/', '/blog/view/hello', '/admin/post/edit/hello',
    '/makeanerror404', '/makeanerror500']

def fake_wsgi_callback(response, headers):
    """Prints heads to stdout"""
print('\n'.join([('%s: %s' % (n, v)) for n, v in headers]))
print('\n')
for request_url in urls:
    html = application({'REQUEST_METHOD': 'GET', 'PATH_INFO': request_url},
        fake_wsgi_callback)
print(html)
Лучший способ профилировать/оптимизировать веб-сайт на Google appengine