def METHOD_NAME(self):
    pt1 = MockPipelineTemplate(id=1, name="pt1")
    tmpl = MockCommonTemplate(id=1, pipeline_template=pt1)
    with mock.patch(
        COMMONTEMPLATE_SELECT_RELATE, MagicMock(return_value=MockQuerySet(get_result=tmpl)),
    ):
        pipeline_tree = copy.deepcopy(tmpl.pipeline_tree)
        pipeline_tree.pop("line")
        pipeline_tree.pop("location")
        assert_data = {
            "id": tmpl.id,
            "name": tmpl.pipeline_template.name,
            "creator": tmpl.pipeline_template.creator,
            "create_time": format_datetime(tmpl.pipeline_template.create_time),
            "editor": tmpl.pipeline_template.editor,
            "edit_time": format_datetime(tmpl.pipeline_template.edit_time),
            "category": tmpl.category,
            "project_id": TEST_PROJECT_ID,
            "project_name": TEST_PROJECT_NAME,
            "bk_biz_id": TEST_BIZ_CC_ID,
            "bk_biz_name": TEST_PROJECT_NAME,
            "pipeline_tree": pipeline_tree,
        }
        response = self.client.get(
            path=self.url().format(template_id=TEST_TEMPLATE_ID, project_id=TEST_PROJECT_ID),
            data={"template_source": "common"},
        )
        data = json.loads(response.content)
        self.assertTrue(data["result"], msg=data)
        self.assertEqual(assert_data, data["data"])