def test_after_return(self): task = self.createTaskCls("T1", "c.unittest.t.after_return")() task.backend = Mock() task.request.chord = return_True_task.subtask() task.after_return("SUCCESS", 1.0, "foobar", (), {}, None) task.backend.on_chord_part_return.assert_called_with(task) task.request.clear()
def test_after_return(self): task = self.createTask("c.unittest.t.after_return") task.request.chord = return_True_task.s() task.after_return("SUCCESS", 1.0, "foobar", (), {}, None) task.request.clear()
def test_after_return(self): task = self.createTask('c.unittest.t.after_return') task.request.chord = return_True_task.s() task.after_return('SUCCESS', 1.0, 'foobar', (), {}, None) task.request.clear()