

def test_constructor_defaults(self):
    cluster = _Cluster()
    self.assertEqual(cluster._client.start_calls, 0)
    connection = cluster._makeOne(cluster=cluster)
    self.assertEqual(cluster._client.start_calls, 1)
    self.assertEqual(cluster._client.stop_calls, 0)
    self.assertEqual(connection._cluster, cluster)
    self.assertEqual(connection.table_prefix, None)
    self.assertEqual(connection.table_prefix_separator, '_')

dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/bigtable/happybase/test_connection.py TestConnection.test_constructor_defaults/VarMisuse@31/39 `self`->`cluster`