'Calling ``run`` registers a before-shutdown event to kill the
process.'

def test_registers_killer(self):

    reactor = ProcessCoreReactor()
    run(reactor, ['command', 'and', 'args'])
    [process] = reactor.processes
    self.assertEqual(reactor._triggers['shutdown'].before, [(process.transport.signalProcess, ('TERM',), {})])
