'Exceptions other than L{error.ProcessDone} with status=0 are turned
into L{error.ConnectionLost}.'

def test_processEnded(self):

    d = self.ep.connect(self.factory)
    self.successResultOf(d)
    wpp = self.reactor.processProtocol
    wpp.processEnded(Failure(error.ProcessTerminated()))
    self.assertEqual(wpp.protocol.reason.check(error.ConnectionLost), error.ConnectionLost)
