'If a header is split over multiple lines, L{HTTPParser} calls
C{headerReceived} with the entire value once it is received.'

def test_continuedHeaderCallback(self):

    (header, protocol) = self._headerTestSetup()
    protocol.dataReceived(('X-Foo:    bar' + self.sep))
    protocol.dataReceived(('    baz' + self.sep))
    protocol.dataReceived((' DCTB quux' + self.sep))
    protocol.dataReceived(self.sep)
    self.assertEqual(header, {'X-Foo': 'bar    baz DCTB quux'})
    self.assertEqual(protocol.state, BODY)
