def METHOD_NAME(self):
    """test expression with message return"""
    template = 'ak_message("some message");return False'
    evaluator = PolicyEvaluator("test")
    evaluator.set_policy_request(self.request)
    result = evaluator.evaluate(template)
    self.assertEqual(result.passing, False)
    self.assertEqual(result.messages, ("some message",))