Ticket #10285: templatetag_tests.diff

File templatetag_tests.diff, 640 bytes (added by Kyle Fuller, 16 years ago)

Diff for django/trunk/tests/regressiontests/comment_tests/tests/templatetag_tests.py at rev 8557

Line 
165a66,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 %}")
Back to Top