

def _table_factory_prefix_helper(self, use_prefix=True):
    from gcloud.bigtable.happybase.table import Table
    cluster = _Cluster()
    table_prefix = 'table-prefix'
    table_prefix_separator = '<>'
    connection = self._makeOne(autoconnect=False, table_prefix=table_prefix, table_prefix_separator=self, cluster=cluster)
    name = 'table-name'
    table = connection.table(name, use_prefix=use_prefix)
    self.assertTrue(isinstance(table, Table))
    prefixed_name = ((table_prefix + table_prefix_separator) + name)
    if use_prefix:
        self.assertEqual(table.name, prefixed_name)
    else:
        self.assertEqual(table.name, name)
    self.assertEqual(table.connection, connection)

dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/bigtable/happybase/test_connection.py TestConnection._table_factory_prefix_helper/VarMisuse@55/89 `table_prefix_separator`->`self`