def test_root_liveaction(self):
        """Test that get_root_liveaction correctly retrieves the root liveaction"""

        # Test a variety of depths
        for i in range(1, 7):

            child, expected_root = self._create_nested_executions(depth=i)
            actual_root = action_service.get_root_liveaction(child)
            self.assertEqual(expected_root["id"], actual_root["id"])
Test that get_root_liveaction correctly retrieves the root liveaction
st2common/tests/unit/services/test_action.py