예제 #1
0
 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()
예제 #2
0
 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()
예제 #3
0
 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()