示例#1
0
文件: test_redis.py 项目: gugu/celery
 def test_apply_chord(self):
     header = Mock(name='header')
     header.results = [Mock(name='t1'), Mock(name='t2')]
     self.b.apply_chord(
         header, (1, 2), 'gid', None,
         options={'max_retries': 10},
     )
     header.assert_called_with(1, 2, max_retries=10, task_id='gid')
示例#2
0
 def test_apply_chord(self):
     header = Mock(name="header")
     header.results = [Mock(name="t1"), Mock(name="t2")]
     self.b.apply_chord(header, (1, 2), "gid", None, options={"max_retries": 10})
     header.assert_called_with(1, 2, max_retries=10, task_id="gid")