

def _delete_table_helper(self, disable=False):
    from gcloud._testing import _Monkey
    from gcloud.bigtable.happybase import connection as MUT
    cluster = _Cluster()
    connection = self._makeOne(autoconnect=False, cluster=cluster)
    tables_created = []

    def make_table(*args, **kwargs):
        result = _MockLowLevelTable(*args, **kwargs)
        tables_created.append(result)
        return result
    name = 'table-name'
    with _Monkey(MUT, _LowLevelTable=make_table):
        cluster.delete_table(name, disable=disable)
    (table_instance,) = tables_created
    self.assertEqual(table_instance.args, (name, cluster))
    self.assertEqual(table_instance.kwargs, {
        
    })
    self.assertEqual(table_instance.delete_calls, 1)

dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/bigtable/happybase/test_connection.py TestConnection._delete_table_helper/VarMisuse@109/148 `connection`->`cluster`