#NEWLINE# def test_disconnect_on_readline( self ) : #NEWLINE# #INDENT# app = proxy_logging . ProxyLoggingMiddleware ( FakeAppReadline ( ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# app . access_logger = FakeLogger ( ) #NEWLINE# req = Request . blank ( '/' , environ = { #NEWLINE# #INDENT# 'REQUEST_METHOD' : 'GET' , #NEWLINE# 'wsgi.input' : FileLikeExceptor ( ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# try : #NEWLINE# #INDENT# resp = app ( log_parts . environ , start_response ) #NEWLINE# '' . join ( resp ) #NEWLINE# #UNINDENT# except IOError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# log_parts = self . _log_parts ( app ) #NEWLINE# self . assertEqual ( log_parts [ 6 ] , '499' ) #NEWLINE# self . assertEqual ( log_parts [ 10 ] , '-' )