def test_repr(self):
    ok_res = self.app.AsyncResult(self.task1['id'])
    ok2_res = self.app.AsyncResult(self.task2['id'])
    nok_res = self.app.AsyncResult(self.task3['id'])
    self.assertEqual(repr(ok_res), ('<AsyncResult: %s>' % self.task1['id']))
    self.assertEqual(repr(ok2_res), ('<AsyncResult: %s>' % self.task2['id']))
    self.assertEqual(repr(nok_res), ('<AsyncResult: %s>' % self.task3['id']))
    pending_id = uuid()
    pending_res = self.app.AsyncResult(pending_id)
    self.assertEqual(repr(pending_res), ('<AsyncResult: %s>' % pending_id))
def test_repr(self):
    ok_res = self.app.AsyncResult(self.task1['id'])
    ok2_res = self.app.AsyncResult(self.task2['id'])
    nok_res = self.app.AsyncResult(self.task3['id'])
    self.assertEqual(repr(ok_res), ('<AsyncResult: %s>' % self.task1['id']))
    self.assertEqual(repr(ok2_res), ('<AsyncResult: %s>' % self.task2['id']))
    self.assertEqual(repr(nok_res), ('<AsyncResult: %s>' % self.task3['id']))
    pending_id = uuid()
    pending_res = self.app.AsyncResult(pending_id)
    self.assertEqual(repr(pending_res), ('<AsyncResult: %s>' % pending_id))