def METHOD_NAME(
    make_organization_and_user_with_plugin_token,
    make_user_auth_headers,
    make_schedule,
    role,
    expected_status,
):
    organization, user, token = make_organization_and_user_with_plugin_token(role)
    schedule = make_schedule(
        organization,
        schedule_class=OnCallScheduleICal,
        name="test_ical_schedule",
        ical_url_primary=ICAL_URL,
    )
    url = reverse("api-internal:schedule-export-token", kwargs={"pk": schedule.public_primary_key})
    client = APIClient()
    response = client.get(url, format="json", **make_user_auth_headers(user, token))
    assert response.status_code == expected_status