def test_after_return(self): task = self.createTask('c.unittest.t.after_return') task.push_request() try: task.request.chord = return_True_task.s() task.after_return('SUCCESS', 1.0, 'foobar', (), {}, None) task.request.clear() finally: task.pop_request()
def test_after_return(self): task = self.createTask("c.unittest.t.after_return") task.push_request() try: task.request.chord = return_True_task.s() task.after_return("SUCCESS", 1.0, "foobar", (), {}, None) task.request.clear() finally: task.pop_request()