def METHOD_NAME(self):
    clear_policy_cache()
    self.user = create_test_admin_user()
    self.policy_false = DummyPolicy.objects.create(
        name=generate_id(), result=False, wait_min=0, wait_max=1
    )
    self.policy_true = DummyPolicy.objects.create(
        name=generate_id(), result=True, wait_min=0, wait_max=1
    )
    self.policy_wrong_type = Policy.objects.create(name=generate_id())
    self.policy_raises = ExpressionPolicy.objects.create(
        name=generate_id(), expression="{{ 0/0 }}"
    )