Beispiel #1
0
 def test_calls_completion_handler(self):
     spawner = self._makeSpawner()
     completion_handler = ReturnCodeReceiver()
     spawner.start("/bin/true", completion_handler=completion_handler)
     spawner.complete()
     self.assertEqual(0, completion_handler.returncode)
Beispiel #2
0
 def test_integrates_with_returncodereceiver(self):
     spawner = self._makeSpawner()
     handler = ReturnCodeReceiver()
     spawner.start("/bin/true", completion_handler=handler)
     spawner.complete()
     self.assertEqual(0, handler.returncode)