def testRenderCommentForm(self, tag=None):
        t = "{% load comments %}" + (tag or "{% render_comment_form for testapp.article a.id %}")
        ctx, out = self.render(t, a=Article.objects.get(pk=1))
        self.assertTrue(out.strip().startswith("<form action="))
        self.assertTrue(out.strip().endswith("</form>"))
dataset/ETHPy150Open django/django-contrib-comments/tests/testapp/tests/test_templatetags.py/CommentTemplateTagTests.testRenderCommentForm/original