def test_get(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'])
    nok2_res = self.app.AsyncResult(self.task4['id'])
    self.assertEqual(ok_res.get(), 'the')
    self.assertEqual(ok2_res.get(), 'quick')
    with self.assertRaises(KeyError):
        nok_res.get()
    self.assertTrue(nok_res.get(propagate=False))
    self.assertIsInstance(nok2_res.result, KeyError)
    self.assertEqual(ok_res.info, 'the')
def test_get(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'])
    nok2_res = self.app.AsyncResult(self.task4['id'])
    self.assertEqual(ok_res.get(), 'the')
    self.assertEqual(ok2_res.get(), 'quick')
    with self.assertRaises(KeyError):
        nok_res.get()
    self.assertTrue(nok_res.get(propagate=False))
    self.assertIsInstance(nok2_res.result, KeyError)
    self.assertEqual(ok_res.info, 'the')