def METHOD_NAME(self):
    template = PotentialTemplate(
        expression="a*x+b",
        independent_variables={"x"},
        expected_parameters_dimensions={
            "a": "dimensionless",
            "b": "length",
        },
    )
    with pytest.raises(AssertionError):
        template.assert_can_parameterize_with(
            {"a": 1.0 * u.nm, "b": 2.0 * u.dimensionless}
        )
    with pytest.raises(AssertionError):
        template.assert_can_parameterize_with(
            {"a": 1.0 * u.dimensionless, "b": 2.0 * u.dimensionless}
        )