def test_successful(self):
    ok_res = self.app.AsyncResult(self.task1['id'])
    nok_res = self.app.AsyncResult(self.task3['id'])
    nok_res2 = self.app.AsyncResult(self.task4['id'])
    self.assertTrue(ok_res.successful())
    self.assertFalse(nok_res.successful())
    self.assertFalse(nok_res2.successful())
    pending_res = self.app.AsyncResult(uuid())
    self.assertFalse(pending_res.successful())
def test_successful(self):
    ok_res = self.app.AsyncResult(self.task1['id'])
    nok_res = self.app.AsyncResult(self.task3['id'])
    nok_res2 = self.app.AsyncResult(self.task4['id'])
    self.assertTrue(ok_res.successful())
    self.assertFalse(nok_res.successful())
    self.assertFalse(nok_res2.successful())
    pending_res = self.app.AsyncResult(uuid())
    self.assertFalse(pending_res.successful())