def METHOD_NAME(self):
    task = MockTaskFlowInstance()
    with patch(TASKFLOW_OBJECTS_FILTER, MagicMock(return_value=[task])):
        response = self.client.post(
            path=self.url().format(project_id=TEST_PROJECT_ID),
            data="invalid json",
            content_type="application/json",
        )
        data = json.loads(response.content)
        self.assertFalse(data["result"])
        self.assertEqual(data["code"], err_code.REQUEST_PARAM_INVALID.code)
        self.assertTrue("message" in data)