def METHOD_NAME(user_factory, context_factory):
    with pytest.raises(posts.PostNotFoundError):
        api.post_api.set_featured_post(
            context_factory(
                params={"id": 1},
                user=user_factory(rank=model.User.RANK_REGULAR),
            )
        )