'Similar to L{test_inConnectionLost}, but for stdout.'

def test_outConnectionLost(self):

    lost = []
    class OutLostProtocol(StubProcessProtocol, ):
        def outConnectionLost(self):
            lost.append(None)
    p = OutLostProtocol()
    p.childConnectionLost(1)
    self.assertEqual(lost, [None])
