随時追記しながら. easy_install-2.5で nose nosegae webtest をする. gaeのデフォルトのmain.pyの下の方をこんな感じに書き換える. main()の中身を分けてapplication()と半分こにした感じ. main.py def application(): return webapp.WSGIApplication([('/', MainHandler)], debug=True) def main(): util.run_wsgi_app(application()) if __name__ == '__main__': main() テストコードはこんな感じ. test.py from webtest import TestApp from main import application from nose.tools import *