'L{HTTPParser.isConnectionControlHeader} returns C{True} for headers
which are always connection control headers (similar to "hop-by-hop"
headers from RFC 2616 section 13.5.1) and C{False} for other headers.'

def test_connectionControlHeaders(self):

    protocol = HTTPParser()
    connHeaderNames = ['content-length', 'connection', 'keep-alive', 'te', 'trailers', 'transfer-encoding', 'upgrade', 'proxy-connection']
    for header in connHeaderNames:
        self.assertTrue(protocol.isConnectionControlHeader(header), ("Expecting    %r    to    be    a    connection    control    header,    but    wasn't" % (header,)))
    self.assertFalse(protocol.isConnectionControlHeader('date'), "Expecting    the    arbitrarily    selected    'date'    header    to    not    be    a    connection    control    header,    but    was.")
