

def test___del__no_cluster(self):
    cluster = _Cluster()
    connection = cluster._makeOne(autoconnect=False, cluster=cluster)
    self.assertEqual(cluster._client.stop_calls, 0)
    del connection._cluster
    connection.__del__()
    self.assertEqual(cluster._client.stop_calls, 0)

dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/bigtable/happybase/test_connection.py TestConnection.test___del__no_cluster/VarMisuse@18/25 `self`->`cluster`