def test_topic_notification_notify_new_comment(self):
        creator = utils.create_user()
        subscriber = utils.create_user()
        topic = utils.create_topic(self.category)
        comment = utils.create_comment(user=creator, topic=topic)
        TopicNotification.objects.create(user=creator, topic=topic, comment=comment,
                                         is_active=True, is_read=True)
        TopicNotification.objects.create(user=subscriber, topic=topic, comment=comment,
                                         is_active=True, is_read=True)

        TopicNotification.notify_new_comment(comment)
        notification = TopicNotification.objects.get(user=subscriber, topic=topic)
        self.assertTrue(notification.is_active)
        self.assertFalse(notification.is_read)
        self.assertEqual(notification.action, COMMENT)

        # Author should not be notified of its own comment
        notification2 = TopicNotification.objects.get(user=creator, topic=topic)
        self.assertTrue(notification2.is_read)
Should set is_read=False to all notifiers/users
dataset/ETHPy150Open nitely/Spirit/spirit/topic/notification/tests.py/TopicNotificationModelsTest.test_topic_notification_notify_new_comment