'The response headers are added to the response object\'s C{headers}
L{Headers} instance.'

def test_responseHeaders(self):

    protocol = HTTPClientParser(Request('GET', '/', _boringHeaders, None), (lambda rest: None))
    protocol.makeConnection(StringTransport())
    protocol.dataReceived('HTTP/1.1    200    OK\r\n')
    protocol.dataReceived('X-Foo:    bar\r\n')
    protocol.dataReceived('\r\n')
    self.assertEqual(protocol.connHeaders, Headers({}))
    self.assertEqual(protocol.response.headers, Headers({'x-foo': ['bar']}))
    self.assertIdentical(protocol.response.length, UNKNOWN_LENGTH)
