def METHOD_NAME(self):
    signal.signal(signal.SIGTERM, signal.SIG_IGN)
    def foo():
        self.wait(1)
    # check it ignores SIGTERM normally
    p = multiprocess.Process(target=foo)
    p.start()
    # TODO: find a non-sleep approach to this
    self.wait(0.5)
    os.kill(p.pid, signal.SIGTERM)
    p.join()
    expect(p.exitcode).to.equal(0)
    # check it fails with the decorator (meaning that SIGTERM is not ignored
    # anymore)
    p = multiprocess.Process(target=reset_signal_handlers(foo))
    p.start()
    # TODO: find a non-sleep approach to this
    self.wait(0.5)
    os.kill(p.pid, signal.SIGTERM)
    p.join()
    expect(p.exitcode).to.equal(-15)