def test_get_children(self):
    tid = uuid()
    x = self.app.AsyncResult(tid)
    child = [self.app.AsyncResult(uuid()).as_tuple() for i in range(10)]
    x.backend._cache[tid] = {'children': child}
    self.assertTrue(x.children)
    self.assertEqual(len(x.children), 10)
    x.backend._cache[tid] = {'result': None}
    self.assertIsNone(x.children)
def test_get_children(self):
    tid = uuid()
    x = self.app.AsyncResult(tid)
    child = [self.app.AsyncResult(uuid()).as_tuple() for i in range(10)]
    x.backend._cache[tid] = {'children': child}
    self.assertTrue(x.children)
    self.assertEqual(len(x.children), 10)
    x.backend._cache[tid] = {'result': None}
    self.assertIsNone(x.children)