def METHOD_NAME(self):
    @ignore_sigint
    def test():
        with pytest.warns(UserWarning) as w:
            pid = os.getpid()
            os.kill(pid, signal.SIGINT)
            # One more time, for good measure
            os.kill(pid, signal.SIGINT)
        assert len(w) == 2
        assert (
            str(w[0].message) == "KeyboardInterrupt ignored until test is complete!"
        )
    pytest.raises(KeyboardInterrupt, test)