def test_headerCallback(self):
        header, protocol = self._headerTestSetup()
        protocol.dataReceived(b'X-Foo:bar' + self.sep)
        # Cannot tell it's not a continue header until the next line arrives
        # and is not a continuation
        protocol.dataReceived(self.sep)
        self.assertEqual(header, {b'X-Foo': b'bar'})
        self.assertEqual(protocol.state, BODY)
Return just one result directly.
dataset/ETHPy150Open twisted/twisted/twisted/web/test/test_newclient.py/_HTTPParserTests.test_headerCallback--crossover with--dataset/ETHPy150Open project-fondue/python-yql/yql/__init__.py/YQLObj.one