def test_children(self):
    x = self.app.AsyncResult('1')
    children = [EagerResult(str(i), i, states.SUCCESS) for i in range(3)]
    x.backend = Mock()
    x.backend.get_children.return_value = children
    x.backend.READY_STATES = states.READY_STATES
    self.assertTrue(x.children)
    self.assertEqual(len(x.children), 3)
def test_children(self):
    x = self.app.AsyncResult('1')
    children = [EagerResult(str(i), i, states.SUCCESS) for i in range(3)]
    x.backend = Mock()
    x.backend.get_children.return_value = children
    x.backend.READY_STATES = states.READY_STATES
    self.assertTrue(x.children)
    self.assertEqual(len(x.children), 3)