コード例 #1
0
 def test_also_commented_notification(self):
     post = "A very thoughful comment."
     also_commented_count = Feed.get_comments(self.feed).count()
     self.feed.comment(user=self.another_user, post=post)
     self.user.profile.notify_also_commented(self.feed)
     new_also_commented_count = Feed.get_comments(self.feed).count()
     assert also_commented_count < new_also_commented_count
コード例 #2
0
ファイル: test_models.py プロジェクト: ghsaheb/Bootcamp
 def test_also_commented_notification(self):
     post = "A very thoughful comment."
     also_commented_count = Feed.get_comments(self.feed).count()
     self.feed.comment(user=self.another_user, post=post)
     self.user.profile.notify_also_commented(self.feed)
     new_also_commented_count = Feed.get_comments(self.feed).count()
     assert also_commented_count < new_also_commented_count