def METHOD_NAME(self):
    task = MockTaskFlowInstance(get_status_return={"children": {}})
    task.name = "task_name"
    dispatcher = MagicMock()
    dispatcher.get_task_status = MagicMock(return_value=DISPATCHER_RETURN)
    with patch(GET_TASK_STATUS_TASK_COMMAND_DISPATCHER, MagicMock(return_value=dispatcher)):
        with patch(TASKFLOW_OBJECTS_FILTER, MagicMock(return_value=[task])):
            response = self.client.post(
                path=self.url().format(project_id=TEST_PROJECT_ID),
                data=json.dumps({"task_id_list": [1, 2, 3], "include_children_status": True}),
                content_type="application/json",
            )
            data = json.loads(response.content)
            self.assertTrue(data["result"])
            self.assertEqual(data["code"], err_code.SUCCESS.code)
            self.assertEqual(
                data["data"],
                [
                    {
                        "id": task.id,
                        "name": task.name,
                        "status": {"children": {}, "name": task.name},
                        "flow_type": task.flow_type,
                        "current_flow": task.current_flow,
                        "is_deleted": task.is_deleted,
                        "create_time": format_datetime(task.create_time),
                        "start_time": format_datetime(task.start_time),
                        "finish_time": format_datetime(task.finish_time),
                        "url": task.url,
                    }
                ],
            )