diff --git a/tests/integration/standard/test_control_connection.py b/tests/integration/standard/test_control_connection.py index 206945f0b3..a2f4e051d3 100644 --- a/tests/integration/standard/test_control_connection.py +++ b/tests/integration/standard/test_control_connection.py @@ -90,14 +90,14 @@ def test_get_control_connection_host(self): """ host = self.cluster.get_control_connection_host() - assert host == None + assert host is None self.session = self.cluster.connect() cc_host = self.cluster.control_connection._connection.host host = self.cluster.get_control_connection_host() assert host.address == cc_host - assert host.is_up == True + assert host.is_up # reconnect and make sure that the new host is reflected correctly self.cluster.control_connection._reconnect() @@ -117,16 +117,16 @@ def test_control_connection_port_discovery(self): self.cluster = TestCluster() host = self.cluster.get_control_connection_host() - assert host == None + assert host is None self.session = self.cluster.connect() cc_endpoint = self.cluster.control_connection._connection.endpoint host = self.cluster.get_control_connection_host() assert host.endpoint == cc_endpoint - assert host.is_up == True + assert host.is_up hosts = self.cluster.metadata.all_hosts() - assert 3 == len(hosts) + assert len(hosts) == 3 for host in hosts: assert 9042 == host.broadcast_rpc_port