def METHOD_NAME(
    graphql_client, user, conference_factory, submission_factory, requests_mock
):
    graphql_client.force_login(user)
    conference = conference_factory(active_voting=True)
    requests_mock.post(
        f"{settings.PRETIX_API}organizers/{conference.pretix_organizer_id}/events/{conference.pretix_event_id}/tickets/attendee-has-ticket/",
        json={"user_has_admission_ticket": True},
    )
    submission = submission_factory(conference=conference, id=1)
    resp, variables = _submit_vote(graphql_client, submission, value_index=1)
    assert resp["data"]["sendVote"]["__typename"] == "VoteType"
    vote1 = Vote.objects.get(user_id=user.id, submission=submission)
    assert vote1.value == variables["value_index"]
    resp, variables = _submit_vote(graphql_client, submission, value_index=3)
    assert resp["data"]["sendVote"]["__typename"] == "VoteType"
    vote1 = Vote.objects.get(user_id=user.id, submission=submission)
    assert vote1.value == variables["value_index"]