#NEWLINE# def test_topic_notification_notify_new_mentions( self ) : #NEWLINE# #INDENT# '\n        Should notify mentions\n        ' #NEWLINE# topic = utils . create_topic ( self . category ) #NEWLINE# mentions = { #NEWLINE# #INDENT# self . user . username : self . user , #NEWLINE# #UNINDENT# } #NEWLINE# comment = utils . create_comment ( topic = topic ) #NEWLINE# TopicNotification . notify_new_mentions ( comment = comment , mentions = mentions ) #NEWLINE# self . assertEqual ( TopicNotification . objects . get ( user = self . user , comment = comment ) . action , MENTION ) #NEWLINE# self . assertFalse ( TopicNotification . objects . get ( user = self . user , comment = comment ) . is_read ) #NEWLINE# self . assertTrue ( TopicNotification . objects . get ( user = self . user , comment = comment ) . is_active )