def test_stopExhausted(self):
        self.stopNext()
        self.scheduler.pump()
        self.assertRaises(task.TaskDone, self.task.stop)
register a function to be executed upon normal program termination
dataset/ETHPy150Open twisted/twisted/twisted/test/test_cooperator.py/RunStateTests.test_stopExhausted--crossover with--dataset/ETHPy150Open python-zk/kazoo/kazoo/python2atexit.py/register