def test_error(self, error, exit): _signal_handler(SIGQUIT, "") ntools.ok_(error.called) exit.assert_called_once_with(1)
def test_int(self, atexit, exit): _signal_handler(SIGINT, "") exit.assert_called_once_with(1)
def test_int(self, info, exit): _signal_handler(SIGINT, "") ntools.ok_(info.called) exit.assert_called_once_with(1)
def test_basic(self, info, exit): _signal_handler(SIGTERM, "") ntools.ok_(info.called) exit.assert_called_once_with(0)