

def testGetCommentForm(self, tag=None):
    t = ('{% load comments %}' + (tag or '{% get_comment_form for testapp.article a.id as form %}'))
    (ctx, out) = self.render(t, a=Article.objects.get(pk=1))
    self.assertEqual(ctx, '')
    self.assertTrue(isinstance(ctx['form'], CommentForm))

dataset/ETHPy150Open django/django-contrib-comments/tests/testapp/tests/test_templatetags.py CommentTemplateTagTests.testGetCommentForm/VarMisuse@56/90 `out`->`ctx`