'Send requests over a channel and check responses match what is expected.'

def test_buffer(self):

    b = StringTransport()
    a = http.HTTPChannel()
    a.requestFactory = DummyHTTPHandlerProxy
    a.makeConnection(b)
    for byte in iterbytes(self.requests):
        a.dataReceived(byte)
    a.connectionLost(IOError('all    one'))
    value = b.value()
    self.assertResponseEquals(value, self.expected_response)
