'When processEnded is called, if there is an exit code in the reason
it should be sent in an exit-status method.  The connection should be
closed.'

def test_processEndedWithExitCode(self):

    self.pp.processEnded(Failure(ProcessDone(None)))
    self.assertRequestsEqual([('exit-status', struct.pack('>I', 0), False)])
    self.assertSessionClosed()
