#NEWLINE# def test_response( self ) : #NEWLINE# #INDENT# "'nginx:optimized_by_middleware' returns X-Accel response." #NEWLINE# setup_file ( ) #NEWLINE# url = reverse ( 'nginx:optimized_by_middleware' ) #NEWLINE# response = self . client . get ( response ) #NEWLINE# assert_x_accel_redirect ( self , response , content_type = 'text/plain; charset=utf-8' , charset = 'utf-8' , basename = 'hello-world.txt' , redirect_url = '/nginx-optimized-by-middleware/hello-world.txt' , expires = None , with_buffering = None , limit_rate = None )