def METHOD_NAME(self, ref_50iter):
    '''Test to compare plothist evolution pdf was generated'''
    with mock.patch(
        target='argparse.ArgumentParser.parse_args',
        return_value=argparse.Namespace(
            verbosity='debug',
            rcfile=self.cfg_filepath,
            input='pdist_ref.h5',
            firstdim='0',
            plot_output='hist_evol.pdf',
            hdf5_output='hist_evol.h5',
            plot_contour=False,
            title=None,
            plotscale='energy',
            enerzero='min',
            range=None,
            postprocess_function=None,
            seconddim=None,
            first_iter=1,
            last_iter=50,
            step_iter=None,
            west_subcommand=EvolutionPlotHist(1),
        ),
    ):
        entry_point()
    assert os.path.isfile('./hist_evol.pdf'), "The evolution pdf was not generated."
    diff = H5Diff('hist_evol_ref.h5', 'hist_evol.h5')
    diff.check()
    # clean up
    os.remove('hist_evol.pdf')
    os.remove('hist_evol.h5')