def METHOD_NAME(
    test_config: FidesConfig,
    generate_type: str,
    generate_target: str,
    test_client: TestClient,
) -> None:
    data = {
        "organization_key": "default_organization",
        "generate": {
            "config": EXTERNAL_FAILURE_CONFIG_BODY[generate_target],
            "target": generate_target,
            "type": generate_type,
        },
    }
    response = test_client.post(
        test_config.cli.server_url + API_PREFIX + "/generate/",
        headers=test_config.user.auth_header,
        data=dumps(data),
    )
    actual_failure_message = loads(response.text)["detail"]
    print(actual_failure_message)
    assert EXPECTED_FAILURE_MESSAGES[generate_target] in actual_failure_message