'Tests to verify that using an unknown profile raises a ValueError
@since 3.5
@jira_ticket PYTHON-569
@expected_result ValueError
@test_category config_profiles'

def test_missing_exec_prof(self):

    query = 'select    release_version    from    system.local'
    rr1 = ExecutionProfile(load_balancing_policy=RoundRobinPolicy())
    rr2 = ExecutionProfile(load_balancing_policy=RoundRobinPolicy())
    exec_profiles = {'rr1': rr1, 'rr2': rr2}
    with Cluster(execution_profiles=exec_profiles) as cluster:
        session = cluster.connect()
        with self.assertRaises(ValueError):
            session.execute(query, execution_profile='rr3')
