def test_with_parent(self):
    x = self.app.AsyncResult(uuid())
    x.parent = self.app.AsyncResult(uuid())
    y = result_from_tuple(x.as_tuple(), self.app)
    self.assertEqual(y, x)
    self.assertEqual(y.parent, x.parent)
    self.assertIsInstance(y.parent, AsyncResult)
def test_with_parent(self):
    x = self.app.AsyncResult(uuid())
    x.parent = self.app.AsyncResult(uuid())
    y = result_from_tuple(x.as_tuple(), self.app)
    self.assertEqual(y, x)
    self.assertEqual(y.parent, x.parent)
    self.assertIsInstance(y.parent, AsyncResult)