def METHOD_NAME(user_factory, post_factory):
    user1 = user_factory()
    user2 = user_factory()
    db.session.add(user1)
    db.session.flush()
    assert user1.comment_count == 0
    post1 = post_factory()
    post2 = post_factory()
    db.session.add_all(
        [
            model.PostFavorite(post=post1, time=datetime.utcnow(), user=user1),
            model.PostFavorite(post=post2, time=datetime.utcnow(), user=user2),
        ]
    )
    db.session.flush()
    db.session.refresh(user1)
    assert user1.favorite_post_count == 1