

def test_continue_if_exception(self):
    self.create_indices(10)
    self.write_config(self.args['configfile'], testvars.client_config.format(host, port))
    self.write_config(self.args['actionfile'], testvars.continue_proto.format('alias', True, 'delete_indices', False))
    test = clicktest.CliRunner()
    result = test.invoke(curator.cli, ['--config', self.args['configfile'], self.args['actionfile']])
    self.assertEquals(0, len(curator.get_indices(self.client)))
    self.assertEqual(0, result.exit_code)

dataset/ETHPy150Open elastic/curator/test/integration/test_cli.py TestCLIMethods.test_continue_if_exception/original