#NEWLINE# def test_pre_auth_req_path_overrides_env( self ) : #NEWLINE# #INDENT# env = { #NEWLINE# #INDENT# 'PATH_INFO' : '/path' , #NEWLINE# 'SCRIPT_NAME' : '/script' , #NEWLINE# #UNINDENT# } #NEWLINE# r = wsgi . make_pre_authed_request ( env , 'GET' , '/override' ) #NEWLINE# self . assertEqual ( r . path , '/override' ) #NEWLINE# self . assertEqual ( r . environ [ 'SCRIPT_NAME' ] , '' ) #NEWLINE# self . assertEqual ( r . environ [ 'PATH_INFO' ] , '/override' )