def test_topic_notification_has_notifications_dont_count_topic_removed_or_no_access(self):
        TopicNotification.objects.all().delete()

        category = utils.create_category()
        category_removed = utils.create_category(is_removed=True)
        subcategory = utils.create_category(parent=category_removed)
        subcategory_removed = utils.create_category(parent=category, is_removed=True)
        topic_a = utils.create_private_topic()
        topic_b = utils.create_topic(category=category, is_removed=True)
        topic_c = utils.create_topic(category=category_removed)
        topic_d = utils.create_topic(category=subcategory)
        topic_e = utils.create_topic(category=subcategory_removed)
        TopicNotification.objects.create(user=self.user, topic=topic_a.topic,
                                         comment=self.comment, is_active=True, action=COMMENT)
        TopicNotification.objects.create(user=self.user, topic=topic_b,
                                         comment=self.comment, is_active=True, action=COMMENT)
        TopicNotification.objects.create(user=self.user, topic=topic_c,
                                         comment=self.comment, is_active=True, action=COMMENT)
        TopicNotification.objects.create(user=self.user, topic=topic_d,
                                         comment=self.comment, is_active=True, action=COMMENT)
        TopicNotification.objects.create(user=self.user, topic=topic_e,
                                         comment=self.comment, is_active=True, action=COMMENT)

        self.assertEqual(len(TopicNotification.objects.filter(user=self.user, is_active=True, is_read=False)), 5)
        self.assertFalse(has_topic_notifications(self.user))
See if host is accepting connections on port. Note that it does no
dataset/ETHPy150Open nitely/Spirit/spirit/topic/notification/tests.py/TopicNotificationTemplateTagsTest.test_topic_notification_has_notifications_dont_count_topic_removed_or_no_access--crossover with--dataset/ETHPy150Open NumentaCorp/agamotto/agamotto/network.py/isPortOpen