def test_tpi_profiles_save_fig(tmpdir):
    path = os.path.join(tmpdir, 'test_plot.png')
    output_plots.tpi_profiles(
        base_tpi, base_params, reform_tpi, reform_params, path=path)
    img = mpimg.imread(path)

    assert isinstance(img, np.ndarray)