def METHOD_NAME(user_factory, comment_factory):
    user = user_factory()
    db.session.add(user)
    db.session.flush()
    assert user.comment_count == 0
    db.session.add_all(
        [
            comment_factory(user=user),
            comment_factory(),
        ]
    )
    db.session.flush()
    db.session.refresh(user)
    assert user.comment_count == 1