#NEWLINE# def test_file_wrapper_uses_sendfile( self ) : #NEWLINE# #INDENT# env = { #NEWLINE# #INDENT# 'SERVER_PROTOCOL' : 'HTTP/1.0' , #NEWLINE# #UNINDENT# } #NEWLINE# handler = FileWrapperHandler ( None , BytesIO ( ) , BytesIO ( ) , env ) #NEWLINE# handler . run ( wsgi_app_file_wrapper ) #NEWLINE# self . assertTrue ( handler . _used_sendfile ) #NEWLINE# self . assertEqual ( handler . stdout . getvalue ( ) , b'' ) #NEWLINE# self . assertEqual ( handler . stderr . getvalue ( ) , b'' )