#NEWLINE# def test_response( self ) : #NEWLINE# #INDENT# "'lighttpd:optimized_by_middleware' returns X-Sendfile response." #NEWLINE# setup_file ( ) #NEWLINE# url = reverse ( 'lighttpd:optimized_by_middleware' ) #NEWLINE# response = self . client . get ( url ) #NEWLINE# assert_x_sendfile ( self , response , content_type = 'text/plain; charset=utf-8' , basename = 'hello-world.txt' , file_path = '/lighttpd-optimized-by-middleware/hello-world.txt' )