def test_render_comment_tree(self): from pprint import pprint as pp t = Template('{% load comments bearded_comments %}' '{% render_comment_tree for site %}') s = Site.objects.get_current() c = Context({'site': s}) utils.create_tcomment_tree(s) print(t.render(c)) pp(TCommentNode.get_annotated_list()) pp(TCommentNode.dump_bulk())