Exemple #1
0
 def test_connect_no_auth_provider(self):
     cluster = Cluster(protocol_version=PROTOCOL_VERSION, contact_points=[CASSANDRA_IP])
     cluster.connect()
     cluster.refresh_nodes()
     down_hosts = [host for host in cluster.metadata.all_hosts() if not host.is_up]
     self.assertEqual(len(down_hosts), 1)
     cluster.shutdown()