#NEWLINE# def test_keepaliveNotForwarded( self ) : #NEWLINE# #INDENT# "\n        The proxy doesn't really know what to do with keepalive things from\n        the remote server, so we stomp over any keepalive header we get from\n        the client.\n        " #NEWLINE# headers = { #NEWLINE# #INDENT# 'accept' : 'text/html' , #NEWLINE# 'keep-alive' : '300' , #NEWLINE# 'connection' : 'keep-alive' , #NEWLINE# #UNINDENT# } #NEWLINE# expectedHeaders = headers . copy ( ) #NEWLINE# expectedHeaders [ 'connection' ] = 'close' #NEWLINE# del expectedHeaders [ 'keep-alive' ] #NEWLINE# client = ProxyClient ( 'GET' , '/foo' , 'HTTP/1.0' , self , '' , None ) #NEWLINE# self . assertForwardsHeaders ( client , 'GET /foo HTTP/1.0' , expectedHeaders )