def METHOD_NAME(self, path_class):
    """Test that the metrics listed by the source parameters are metrics that list the source."""
    model_kwargs = {
        "scales": self.SCALES,
        "metrics": self.METRICS,
        "sources": {
            "source": self.source(
                parameters={"parameter": {"name": "parameter", "type": "string", "metrics": ["metric"]}},
            ),
            "other_source": self.source(
                parameters={"parameter": {"name": "parameter", "type": "string", "metrics": ["metric"]}},
            ),
        },
    }
    self.check_validation_error(
        "Parameter parameter of source other_source lists metric metric as metric needing this parameter, "
        "but that metric doesn't list other_source as allowed source",
        **model_kwargs,
    )
    path_class.assert_called_once()