def METHOD_NAME(self):
    self.create_repository()
    timestamps = []
    def add_snap(num, name):
        self.add_docs(f'my_index{num}')
        ilo = IndexList(self.client)
        snap = Snapshot(ilo, repository=self.args['repository'], name=name, wait_interval=0.5)
        snap.do_action()
        snapshot = get_snapshot(self.client, self.args['repository'], '*')
        assert num == len(snapshot['snapshots'])
        time.sleep(1.0)
        timestamps.append(int(time.time()))
        time.sleep(1.0)
    name = 'curator-%Y%m%d%H%M%S'
    for i in range(1,4):
        add_snap(i, name)
    add_snap(4, 'kibana-index')
    ### Setup the actual delete
    args = self.get_runner_args()
    args += [
        '--config', self.args['configfile'],
        'delete-snapshots',
        '--repository', self.args['repository'],
        '--filter_list',
        '{"filtertype":"count","count":2,"use_age":true,"source":"name","timestring":"%Y%m%d%H%M%S"}',
    ]
    assert 0 == self.run_subprocess(args, logname='TestCLIDeleteSnapshots.test_deletesnapshot')
    snapshot = get_snapshot(self.client, self.args['repository'], '*')
    assert 3 == len(snapshot['snapshots'])