def _get_via_dep(p, k, f):
with pytest.warns(DeprecationWarning):<EOL><INDENT>return f(p, k)<EOL><DEDENT>
Fetch value for particular key from a Project, asserting deprecation.

:param peppy.Project p: project from which to retrieve value
:param str k: key for which to retrieve value
:param function f: function with which to do the retrieval