#NEWLINE# def test_headersCleanups( self ) : #NEWLINE# #INDENT# '\n        The headers given at initialization should be modified:\n        B{proxy-connection} should be removed if present, and B{connection}\n        should be added.\n        ' #NEWLINE# client = ProxyClient ( 'GET' , '/foo' , 'HTTP/1.0' , { #NEWLINE# #INDENT# 'accept' : 'text/html' , #NEWLINE# 'proxy-connection' : 'foo' , #NEWLINE# #UNINDENT# } , '' , None ) #NEWLINE# self . assertEquals ( client . headers , { #NEWLINE# #INDENT# 'accept' : 'text/html' , #NEWLINE# 'connection' : 'close' , #NEWLINE# #UNINDENT# } )