

def test_constructor_no_autoconnect(self):
    cluster = _Cluster()
    connection = self._makeOne(autoconnect=False, cluster=cluster)
    self.assertEqual(cluster._client.start_calls, 0)
    self.assertEqual(connection._client.stop_calls, 0)
    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_no_autoconnect/VarMisuse@48/64 `cluster`->`connection`