'The headers given at initialization should be modified:
B{proxy-connection} should be removed if present, and B{connection}
should be added.'

def test_headersCleanups(self):

    client = ProxyClient('GET', '/foo', 'HTTP/1.0', {'accept': 'text/html', 'proxy-connection': 'foo'}, '', None)
    self.assertEqual(client.headers, {'accept': 'text/html', 'connection': 'close'})
