from webob import Request
req = Request.blank('http://localhost/test')
resp = req.get_response(application)
print resp

from webob import Request
req = Request.blank('http://localhost/test')
resp = req.get_response(application)


if __name__ == '__main__':
    from paste import httpserver
    httpserver.serve(app, host='127.0.0.1', port=8080)

add the main module