'The proxy doesn\'t really know what to do with keepalive things from
the remote server, so we stomp over any keepalive header we get from
the client.'

def test_keepaliveNotForwarded(self):

    headers = {'accept': 'text/html', 'keep-alive': '300', 'connection': 'keep-alive'}
    expectedHeaders = headers.copy()
    expectedHeaders['connection'] = 'close'
    del expectedHeaders['keep-alive']
    client = ProxyClient('GET', '/foo', 'HTTP/1.0', headers, '', None)
    self.assertForwardsHeaders(client, 'GET    /foo    HTTP/1.0', expectedHeaders)
