def check_for_contest(cvr, contest_name):
    """
    check if a single cvr contains a given contest

    Parameters:
    -----------
    cvr : list
        a single CVR
    contest_name: string
        name of contest

    Returns:
    --------
    contest_present : boolean
        whether contest is present in the CVR
    """
    if contest_name in cvr.votes.keys():
        contest_present = True
    else:
        contest_present = False
    return contest_present