def test_protocolToConsumer(self):
        result = []
        p = Protocol()
        p.dataReceived = result.append
        consumer = IConsumer(p)
        consumer.write(b"hello")
        self.assertEqual(result, [b"hello"])
        self.assertIsInstance(consumer, ProtocolToConsumerAdapter)
a line has been received.
dataset/ETHPy150Open twisted/twisted/twisted/internet/test/test_protocol.py/AdapterTests.test_protocolToConsumer--crossover with--dataset/ETHPy150Open byt3bl33d3r/pth-toolkit/lib/python2.7/site-packages/samba/external/subunit/__init__.py/_ParserState.lineReceived