

def test_delete_table_disable(self):
    from gcloud._testing import _Monkey
    from gcloud.bigtable.happybase import connection as MUT
    warned = []

    def mock_warn(msg):
        warned.append(msg)
    with _Monkey(MUT, _WARN=mock_warn):
        self._delete_table_helper(disable=True)
    self.assertEqual(warned, [MUT._DISABLE_DELETE_MSG])

dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/bigtable/happybase/test_connection.py TestConnection.test_delete_table_disable/original