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')
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")