'L{IProtocol} providers can be adapted to L{IConsumer} providers using
L{ProtocolToConsumerAdapter}.'

def test_protocolToConsumer(self):

    result = []
    p = Protocol()
    p.dataReceived = result.append
    consumer = IConsumer(p)
    consumer.write('hello')
    self.assertEqual(result, ['hello'])
    self.assertIsInstance(consumer, ProtocolToConsumerAdapter)
