'generate a warning for this test session.'

def warn(self, code, message, fslocation=None):

    self.hook.pytest_logwarning.call_historic(kwargs=dict(code=code, message=message, fslocation=fslocation, nodeid=None))
