'Test to ensure that you can register a connection from a list of hosts
@since 3.8
@jira_ticket PYTHON-692
@expected_result queries should execute appropriately
@test_category object_mapper'

def test_connection_from_hosts(self):

    connection_name = 'from_hosts'
    conn.register_connection(connection_name, hosts=[CASSANDRA_IP])
    self.assertIsNotNone(conn.get_connection(connection_name).cluster.metadata.get_host(CASSANDRA_IP))
    self.addCleanup(conn.unregister_connection, connection_name)
