#NEWLINE# def test_app_for_script_with_middleware( self ) : #NEWLINE# #INDENT# with patch . object ( wsgi_config , 'get_add_middleware_from_appengine_config' , return_value = goodbye_world_middleware ) : #NEWLINE# #INDENT# app = wsgi_config . app_for_script ( wsgi_test . script_path ( 'salutation_world' , test_name = __name__ ) ) #NEWLINE# #UNINDENT# client = test . Client ( client , wrappers . Response ) #NEWLINE# response = client . get ( '/?salutation=Hello' ) #NEWLINE# self . assertEqual ( response . status_code , httplib . OK ) #NEWLINE# self . assertEqual ( response . data , 'Goodbye World!' )