def METHOD_NAME(self):
    """Checks that the output is created"""
    # train model
    self.assertModule(
        "r.learn.train",
        group=self.group,
        training_map=self.labelled_pixels,
        model_name="RandomForestClassifier",
        n_estimators=100,
        save_model=self.model_file,
    )
    self.assertFileExists(filename=self.model_file)
    # create prediction is created
    self.assertModule(
        "r.learn.predict",
        group=self.group,
        load_model=self.model_file,
        output=self.output,
    )
    self.assertRasterExists(self.output, msg="Output was not created")
    # check categories were applied to classification map
    cats_input = gs.parse_command(
        "r.category", map=self.labelled_pixels, separator=":", delimiter=":"
    )
    cats_result = gs.parse_command(
        "r.category", map=self.output, separator=":", delimiter=":"
    )
    self.assertEqual(cats_input, cats_result)