1 | 65a66,77
|
---|
2 | >
|
---|
3 | > def testRenderCommentList(self, tag=None):
|
---|
4 | > t = "{% load comments %}" + (tag or "{% render_comment_list for comment_tests.article a.id %}")
|
---|
5 | > ctx, out = self.render(t, a=Article.objects.get(pk=1))
|
---|
6 | > self.assert_(out.strip().startswith("<dl id=\"comments\">"))
|
---|
7 | > self.assert_(out.strip().endswith("</dl>"))
|
---|
8 | >
|
---|
9 | > def testRenderCommentListFromLiteral(self):
|
---|
10 | > self.testRenderCommentForm("{% render_comment_list for comment_tests.article 1 %}")
|
---|
11 | >
|
---|
12 | > def testRenderCommentListFromObject(self):
|
---|
13 | > self.testRenderCommentForm("{% render_comment_list for a %}")
|
---|