def METHOD_NAME(self):
    self.assertModule("r3.to.rast", input=self.rast3d, output=self.rast2d)
    rasts = list_strings(
        "raster",
        mapset=".",
        pattern="%s_*" % self.rast2d,
        exclude="%s_*" % self.rast2d_ref,
    )
    self.assertEqual(
        len(rasts), 4, msg="Wrong number of 2D rasters present" " in the mapset"
    )
    ref_info = dict(cells=9)
    # only this tests the presence of nulls
    ref_univar = dict(cells=9, null_cells=2)
    for rast in rasts:
        self.assertRasterExists(rast)
        # the following doesn't make much sense because we just listed them
        self.to_remove_2d.append(rast)
        self.assertRasterFitsInfo(raster=rast, reference=ref_info, precision=0)
        self.assertRasterFitsUnivar(raster=rast, reference=ref_univar, precision=0)
    # check the actual values
    # TODO: this does not check the position of nulls
    # (it ignores nulls)
    for rast_ref, rast in zip(self.rast2d_refs, rasts):
        self.assertRastersNoDifference(
            actual=rast, reference=rast_ref, precision=0.1
        )