def METHOD_NAME(self):
    """Check that module fails when parameters are missing"""
    # missing group
    self.assertModuleFail(
        "r.learn.train",
        training_points=self.labelled_points,
        field="value",
        model_name="RandomForestClassifier",
        n_estimators=100,
        save_model=self.model_file,
    )
    # missing any training data
    self.assertModuleFail(
        "r.learn.train",
        group=self.group,
        model_name="RandomForestClassifier",
        n_estimators=100,
        save_model=self.model_file,
    )
    # using points as input but no field specified
    self.assertModuleFail(
        "r.learn.train",
        group=self.group,
        training_points=self.labelled_points,
        model_name="RandomForestClassifier",
        n_estimators=100,
        save_model=self.model_file,
    )
    # using both points and labelled pixels
    self.assertModuleFail(
        "r.learn.train",
        group=self.group,
        training_points=self.labelled_points,
        training_map=self.labelled_pixels,
        model_name="RandomForestClassifier",
        n_estimators=100,
        save_model=self.model_file,
    )
    # no model output
    self.assertModuleFail(
        "r.learn.train",
        group=self.group,
        training_points=self.labelled_points,
        model_name="RandomForestClassifier",
        n_estimators=100,
    )