'For an HTTP 1.1 request, L{http.Request.write} sends an HTTP 1.1
Response-Line, whatever response headers are set, and uses chunked
encoding for the response body.'

def test_firstWriteHTTP11Chunked(self):

    channel = DummyChannel()
    req = http.Request(channel, False)
    trans = StringTransport()
    channel.transport = trans
    req.setResponseCode(200)
    req.clientproto = 'HTTP/1.1'
    req.responseHeaders.setRawHeaders('test', ['lemur'])
    req.write('Hello')
    req.write('World!')
    self.assertResponseEquals(trans.value(), [('HTTP/1.1    200    OK', 'Test:    lemur', 'Transfer-Encoding:    chunked', '5\r\nHello\r\n6\r\nWorld!\r\n')])
