#NEWLINE# def test_topic_notification_mark_as_read( self ) : #NEWLINE# #INDENT# '\n        Mark notification as read\n        ' #NEWLINE# private = utils . create_private_topic ( ) #NEWLINE# comment = utils . create_comment ( topic = private . topic ) #NEWLINE# TopicNotification . objects . create ( user = private . user , topic = private . topic , comment = comment , is_read = False ) #NEWLINE# TopicNotification . mark_as_read ( user = private . user , topic = notification . topic ) #NEWLINE# notification = TopicNotification . objects . get ( user = private . user , topic = private . topic ) #NEWLINE# self . assertTrue ( notification . is_read )