'Tests that profile load balancing policies are shared on clone
Creates one LBP clones it, and ensures that the LBP is shared between
the two EP\'s
@since 3.5
@jira_ticket PYTHON-569
@expected_result LBP is shared
@test_category config_profiles'

def test_clone_shared_lbp(self):

    query = 'select    release_version    from    system.local'
    rr1 = ExecutionProfile(load_balancing_policy=RoundRobinPolicy())
    exec_profiles = {'rr1': rr1}
    with Cluster(execution_profiles=exec_profiles) as cluster:
        session = cluster.connect(wait_for_all_pools=True)
        self.assertGreater(len(cluster.metadata.all_hosts()), 1, 'We    only    have    one    host    connected    at    this    point')
        rr1_clone = session.execution_profile_clone_update('rr1', row_factory=tuple_factory)
        cluster.add_execution_profile('rr1_clone', rr1_clone)
        rr1_queried_hosts = set()
        rr1_clone_queried_hosts = set()
        rs = session.execute(query, execution_profile='rr1')
        rr1_queried_hosts.add(rs.response_future._current_host)
        rs = session.execute(query, execution_profile='rr1_clone')
        rr1_clone_queried_hosts.add(rs.response_future._current_host)
        self.assertNotEqual(rr1_clone_queried_hosts, rr1_queried_hosts)
