def METHOD_NAME(self, compare_lps):
    self.TEST_REGISTER.add("constraints.resource_max")
    model = build_test_model(
        {},
        "simple_supply_plus,resample_two_days,investment_costs",
    )
    custom_math = {
        "constraints": {"my_constraint": model.math.constraints.resource_max}
    }
    compare_lps(model, custom_math, "resource_max")