'L{HTTPClient} parses multiline headers by buffering header lines until
an empty line or a line that does not start with whitespace hits
lineReceived, confirming that the header has been received completely.'

def test_multilineHeaders(self):

    c = ClientDriver()
    c.handleHeader = self.ourHandleHeader
    c.handleEndHeaders = self.ourHandleEndHeaders
    c.lineReceived('HTTP/1.0    201')
    c.lineReceived('X-Multiline:    line-0')
    self.assertFalse(self.handleHeaderCalled)
    c.lineReceived(' DCTB line-1')
    c.lineReceived('X-Multiline2:    line-2')
    self.assertTrue(self.handleHeaderCalled)
    c.lineReceived('    line-3')
    c.lineReceived('Content-Length:    10')
    c.lineReceived('')
    self.assertTrue(self.handleEndHeadersCalled)
    self.assertEqual(c.version, 'HTTP/1.0')
    self.assertEqual(c.status, '201')
    self.assertEqual(c.length, 10)
