def METHOD_NAME(load_additional_str):
    post0 = Post(id=0, contents="private post", title="not private post")
    post1 = Post(id=1, contents="allowed posts", title="private post")
    post2 = Post(id=2, contents="post", title="post")
    post0.save()
    post1.save()
    post2.save()
    load_additional_str(
        """
        allow(_, _, post: test_app2::Post) if
            post.contents in ["post", "allowed posts"];
    """
    )
    posts = Post.objects.authorize(None, actor="u", action="r").all()
    assert len(posts) == 2
    assert post1 in posts
    assert post2 in posts