

def test_no_client_config(self):
    self.create_indices(10)
    self.write_config(self.args['configfile'], testvars.no_client_config.format(host, port))
    self.write_config(self.args['actionfile'], testvars.disabled_proto.format('alias', 'delete_indices'))
    test = clicktest.CliRunner()
    result = test.invoke(curator.cli, ['--config', self.args['configfile'], '--dry-run', self.args['actionfile']])
    self.assertEqual(1, result.exit_code)

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