def METHOD_NAME(origin, msg):
    ds = fake_amr_ds(fields=[("gas", "density")], units=["g*cm**-3"])
    with pytest.raises(ValueError, match=re.escape(msg)):
        SlicePlot(ds, "z", ("gas", "density"), origin=origin)