Beispiel #1
0
 def test_comment_comment_like_post_create_handler(self):
     """
     Increase like_count on comment like
     """
     comment = utils.create_comment(topic=self.topic)
     comment_like_post_create.send(sender=comment.__class__, comment=comment)
     self.assertEqual(Comment.objects.get(pk=comment.pk).likes_count, 1)
Beispiel #2
0
 def test_comment_comment_like_post_create_handler(self):
     """
     Increase like_count on comment like
     """
     comment = utils.create_comment(topic=self.topic)
     comment_like_post_create.send(sender=comment.__class__, comment=comment)
     self.assertEqual(Comment.objects.get(pk=comment.pk).likes_count, 1)