def test_get_topic_notifications_has_notifications(self):
        template = Template(
            "{% load spirit_tags %}"
            "{% has_topic_notifications user=user as has_notifications %}"
            "{{ has_notifications }}"
        )
        context = Context({'user': self.user, })

        out = template.render(context)
        self.assertEqual(out, "True")

        TopicNotification.objects.all().update(is_read=True)
        out = template.render(context)
        self.assertEqual(out, "False")
Get type of this field.
dataset/ETHPy150Open nitely/Spirit/spirit/topic/notification/tests.py/TopicNotificationTemplateTagsTest.test_get_topic_notifications_has_notifications--crossover with--dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/xmpp/protocol.py/DataField.getType