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

def test_processEndedWithExitSignalCoreDump(self):

    self.pp.processEnded(Failure(ProcessTerminated(1, signal.SIGTERM, (1 << 7))))
    self.assertRequestsEqual([('exit-signal', (((common.NS('TERM') + '\x01') + common.NS('')) + common.NS('')), False)])
    self.assertSessionClosed()
