def test_ready(self):
    oks = (self.app.AsyncResult(self.task1['id']), self.app.AsyncResult(self.task2['id']), self.app.AsyncResult(self.task3['id']))
    self.assertTrue(all((result.ready() for result in oks)))
    self.assertFalse(self.app.AsyncResult(self.task4['id']).ready())
    self.assertFalse(self.app.AsyncResult(uuid()).ready())
def test_ready(self):
    oks = (self.app.AsyncResult(self.task1['id']), self.app.AsyncResult(self.task2['id']), self.app.AsyncResult(self.task3['id']))
    self.assertTrue(all((result.ready() for result in oks)))
    self.assertFalse(self.app.AsyncResult(self.task4['id']).ready())
    self.assertFalse(self.app.AsyncResult(uuid()).ready())