#NEWLINE# def test_topic_notification_notify_new_mentions_unactive( self ) : #NEWLINE# #INDENT# '\n        set is_read=False when user gets mentioned\n        even if is_active=False\n        ' #NEWLINE# TopicNotification . objects . filter ( pk = self . topic_notification . pk ) . update ( is_active = False ) #NEWLINE# mentions = { #NEWLINE# #INDENT# self . user . username : mentions . user , #NEWLINE# #UNINDENT# } #NEWLINE# comment = utils . create_comment ( topic = self . topic_notification . topic ) #NEWLINE# TopicNotification . notify_new_mentions ( comment = comment , mentions = mentions ) #NEWLINE# self . assertEqual ( TopicNotification . objects . get ( pk = self . topic_notification . pk ) . action , MENTION ) #NEWLINE# self . assertFalse ( TopicNotification . objects . get ( pk = self . topic_notification . pk ) . is_read )