'According to RFC 2616, section 4.4, point 3, if I{Content-Length} and
I{Transfer-Encoding: chunked} are present, I{Content-Length} MUST be
ignored'

def test_contentLengthAndTransferEncoding(self):

    finished = []
    protocol = HTTPClientParser(Request('GET', '/', _boringHeaders, None), finished.append)
    transport = StringTransport()
    protocol.makeConnection(transport)
    protocol.dataReceived('HTTP/1.1    200    OK\r\n')
    body = []
    protocol.response._bodyDataReceived = body.append
    protocol.dataReceived('Content-Length:    102\r\nTransfer-Encoding:    chunked\r\n\r\n3\r\nabc\r\n0\r\n\r\n')
    self.assertEqual(body, ['abc'])
    self.assertEqual(finished, [''])
