def _create_comment(self): comment = Comment( post=self.post, text="Foo bar text", created_by=self.user ) comment.save() return comment
def _add_comment(self, author): comment = Comment( created_by=author, text="test", text_filter="dummy", post=self.post ) comment.save() return comment