'Verify that when stdout is delivered to
L{ProcessProtocol.childDataReceived}, it is forwarded to
L{ProcessProtocol.outReceived}.'

def test_outReceived(self):

    received = []
    class OutProtocol(StubProcessProtocol, ):
        def outReceived(self, data):
            received.append(data)
    bytesToSend = 'bytes'
    p = OutProtocol()
    p.childDataReceived(1, bytesToSend)
    self.assertEqual(received, [bytesToSend])
