

def verifyGetCommentList(self, tag=None):
    (c1, c2, c3, c4) = Comment.objects.all()[:4]
    t = ('{% load comments %}' + (t or '{% get_comment_list for testapp.author a.id as cl %}'))
    (ctx, out) = self.render(t, a=Author.objects.get(pk=1))
    self.assertEqual(out, '')
    self.assertEqual(list(ctx['cl']), [c2])

dataset/ETHPy150Open django/django-contrib-comments/tests/testapp/tests/test_templatetags.py CommentTemplateTagTests.verifyGetCommentList/VarMisuse@42/52 `tag`->`t`