#NEWLINE# def test_file_wrapper_uses_sendfile( self ) : #NEWLINE# #INDENT# env = { #NEWLINE# #INDENT# 'SERVER_PROTOCOL' : 'HTTP/1.0' , #NEWLINE# #UNINDENT# } #NEWLINE# err = StringIO ( ) #NEWLINE# handler = FileWrapperHandler ( None , StringIO ( ) , err , handler ) #NEWLINE# handler . run ( wsgi_app_file_wrapper ) #NEWLINE# self . assert_ ( handler . _used_sendfile )