def METHOD_NAME(self, p, attr):
    p_run = p.run(step=3)
    wmsg = f"The `{attr}` attribute was deprecated in MDAnalysis 2.0.0"
    with pytest.warns(DeprecationWarning, match=wmsg):
        getattr(p_run, attr) is p_run.results[attr]