

def test_invalid_action(self):
    self.write_config(self.args['configfile'], testvars.client_config.format(host, port))
    self.write_config(self.args['actionfile'], testvars.optionless_proto.format('invalid_action'))
    test = clicktest.CliRunner()
    result = test.invoke(curator.cli, ['--config', self.args['configfile'], self.args['actionfile']])
    self.assertEqual(1, result.exit_code)

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