<s> import webapp2 <EOL> from webapp2_extras import local_app <EOL> import test_base <EOL> class TestLocalApp ( test_base . BaseTestCase ) : <EOL> def test_dispatch ( self ) : <EOL> def hello_handler ( request , * args , ** kwargs ) : <EOL> return webapp2 . Response ( '<STR_LIT>' ) <EOL> app = local_app . WSGIApplication ( [ ( '<STR_LIT:/>' , hello_handler ) ] ) <EOL> rsp = app . get_response ( '<STR_LIT:/>' ) <EOL> self . assertEqual ( rsp . status_int , <NUM_LIT:200> ) <EOL> self . assertEqual ( rsp . body , '<STR_LIT>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> test_base . main ( ) </s>
