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