'Leading and trailing linear whitespace is stripped from the header
value passed to the C{headerReceived} callback.'

def test_fieldContentWhitespace(self):

    (header, protocol) = self._headerTestSetup()
    value = self.sep.join(['     DCTB     ', '    bar     DCTB ', '     DCTB ', ''])
    protocol.dataReceived(('X-Bar:' + value))
    protocol.dataReceived(('X-Foo:' + value))
    protocol.dataReceived(self.sep)
    self.assertEqual(header, {'X-Foo': 'bar', 'X-Bar': 'bar'})
