def test_get_traceback(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.assertFalse(ok_res.traceback)
    self.assertTrue(nok_res.traceback)
    self.assertTrue(nok_res2.traceback)
    pending_res = self.app.AsyncResult(uuid())
    self.assertFalse(pending_res.traceback)
def test_get_traceback(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.assertFalse(ok_res.traceback)
    self.assertTrue(nok_res.traceback)
    self.assertTrue(nok_res2.traceback)
    pending_res = self.app.AsyncResult(uuid())
    self.assertFalse(pending_res.traceback)