def METHOD_NAME(self, forest, window, reference):
    self.runModule("r.in.ascii", input="-", stdin_=forest, output=self.forest)
    self.to_remove.append(self.forest)
    self.runModule("g.region", raster=self.forest)
    self.assertRasterMinMax(self.forest, refmin=0, refmax=1)
    self.runModule(
        "r.in.ascii", input="-", stdin_=reference, output=self.forest_frag_ref
    )
    self.to_remove.append(self.forest_frag_ref)
    pf_ref = self.forest_frag_ref + "_pf"
    self.runModule("r.in.ascii", input="-", stdin_=PF_RIITTERS, output=pf_ref)
    self.to_remove.append(pf_ref)
    pff_ref = self.forest_frag_ref + "_pff"
    self.runModule("r.in.ascii", input="-", stdin_=PFF_RIITTERS, output=pff_ref)
    self.to_remove.append(pff_ref)
    # just check if the reference is all right
    theoretical_min = 0
    theoretical_max = 6
    self.assertRasterMinMax(
        self.forest_frag_ref, refmin=theoretical_min, refmax=theoretical_max
    )
    ref_univar = dict(null_cells=8)
    self.assertRasterFitsUnivar(
        raster=self.forest_frag_ref, reference=ref_univar, precision=0
    )
    # actually run the module
    pf = self.forest_frag + "_pf"
    pff = self.forest_frag + "_pff"
    self.assertModule(
        "r.forestfrag",
        input=self.forest,
        output=self.forest_frag,
        window=window,
        pf=pf,
        pff=pff,
    )
    self.assertRasterExists(self.forest_frag)
    self.to_remove.append(self.forest_frag)
    self.assertRasterExists(pf)
    self.to_remove.append(pf)
    self.assertRasterExists(pff)
    self.to_remove.append(pff)
    # check the basic properties
    self.assertRasterMinMax(
        self.forest_frag, refmin=theoretical_min, refmax=theoretical_max
    )
    ref_univar = dict(null_cells=0)
    self.assertRasterFitsUnivar(
        raster=self.forest_frag, reference=ref_univar, precision=0
    )
    self.runModule("g.region", zoom=pff_ref)
    # check cell by cell
    self.assertRastersNoDifference(actual=pf, reference=pf_ref, precision=0.01)
    self.assertRastersNoDifference(actual=pff, reference=pff_ref, precision=0.01)
    self.assertRastersNoDifference(
        actual=self.forest_frag, reference=self.forest_frag_ref, precision=0
    )  # it's CELL type