def _assert_absent_prj_var(p, var):
with pytest.raises(AttributeError):<EOL><INDENT>getattr(p, var)<EOL><DEDENT>with pytest.raises(KeyError):<EOL><INDENT>p[var]<EOL><DEDENT>
Assert that a Project lacks a particular variable.

:param peppy.Project p: Project on which to check variable absence
:param str var: name of variable to check as absent