

def test_dry_run(self):
    self.create_indices(10)
    self.write_config(self.args['configfile'], testvars.client_config.format(host, port))
    self.write_config(self.args['actionfile'], testvars.delete_proto.format('age', 'name', 'older', "'%Y.%m.%d'", 'days', 5, ' ', ' ', ' '))
    test = clicktest.CliRunner()
    result = test.invoke(curator.cli, ['--config', self.args['configfile'], '--dry-run', self.args['actionfile']])
    self.assertEquals(10, len(curator.get_indices(test.client)))

dataset/ETHPy150Open elastic/curator/test/integration/test_cli.py TestCLIMethods.test_dry_run/VarMisuse@128/182 `self`->`test`