Ejemplo n.º 1
0
    def _create_comment(self):
        comment = Comment(
            post=self.post,
            text="Foo bar text",
            created_by=self.user
        )
        comment.save()

        return comment
Ejemplo n.º 2
0
    def _add_comment(self, author):
        comment = Comment(
            created_by=author,
            text="test",
            text_filter="dummy",
            post=self.post
        )
        comment.save()

        return comment