def METHOD_NAME(self):
    """Test A2fRobot."""
    files = abidata.ref_files(
            "al_888k_161616q_A2F.nc",
            #"al_888k_161616q_A2F.nc",
    )
    with abilab.A2fRobot.from_files(files[0]) as robot:
        robot.add_file("same_a2f", files[0])
        assert len(robot) == 2
        repr(robot); str(robot)
        robot.to_string(verbose=2)
        #assert [t[2] for t in robot.sortby("nkpt")] == [10, 60, 182]
        df_params = robot.get_params_dataframe()
        self.assert_equal(df_params["nspden"].values, 1)
        data = robot.get_dataframe(with_geo=True)
        #assert "lambda_qcoarse" in data and "omegalog_qintp" in data
        # Mixin
        phbands_plotter = robot.get_phbands_plotter()
        data = robot.get_phbands_dataframe()
        assert "min_freq" in data
        assert np.all(data["nmodes"].values == 3)
        # Test plot methods
        if self.has_matplotlib():
            assert phbands_plotter.boxplot(show=False)
            # Test wrappers provided by RobotWithPhbands
            assert robot.combiplot_phbands(show=False)
            assert robot.gridplot_phbands(show=False)
            assert robot.boxplot_phbands(show=False)
            assert robot.combiboxplot_phbands(show=False)
            # Test A2fRobot plot methods
            assert robot.plot_lambda_convergence(sortby=None, hue=None, show=False)
            assert robot.plot_lambda_convergence(what="gamma", sortby=None, hue="nkpt", show=False)
            assert robot.plot_a2f_convergence(show=False)
            assert robot.plot_a2f_convergence(hue="nkpt", show=False)
            assert robot.plot_a2fdata_convergence(show=False, sortby=None, hue="nkpt")
            assert robot.gridplot_a2f(show=False)
            #assert robot.plot_a2ftr_convergence(show=False, sortby=None, hue="nkpt")
        if self.has_nbformat():
            robot.write_notebook(nbpath=self.get_tmpname(text=True))