def METHOD_NAME(topic, comment_factory, rating_factory):
    qs = communitydebate_models.Topic.objects.annotate_comment_count().\
        annotate_positive_rating_count()
    assert qs.first().comment_count == 0
    assert qs.first().positive_rating_count == 0
    comment_factory(content_object=topic)
    rating_factory(content_object=topic, value=1)
    rating_factory(content_object=topic, value=1)
    qs = communitydebate_models.Topic.objects.annotate_comment_count().\
        annotate_positive_rating_count()
    assert qs.first().comment_count == 1
    assert qs.first().positive_rating_count == 2
    comment_factory(content_object=topic)
    comment_factory(content_object=topic)
    qs = communitydebate_models.Topic.objects.annotate_comment_count().\
        annotate_positive_rating_count()
    assert qs.first().comment_count == 3
    assert qs.first().positive_rating_count == 2