#NEWLINE# @ override_settings ( ST_NOTIFICATIONS_PER_PAGE = 10 ) #NEWLINE# def test_topic_notification_list_unread( self ) : #NEWLINE# #INDENT# '\n        topic notification list\n        ' #NEWLINE# topic = utils . create_topic ( self . category , user = self . user2 ) #NEWLINE# comment = utils . create_comment ( topic = topic , user = self . user2 ) #NEWLINE# topic_notification = TopicNotification . objects . create ( user = self . user , topic = topic , comment = comment , is_active = True , action = COMMENT ) #NEWLINE# utils . login ( self ) #NEWLINE# response = self . client . get ( reverse ( 'spirit:topic:notification:index-unread' ) ) #NEWLINE# self . assertEqual ( list ( response . context [ 'page' ] ) , [ topic_notification , self . topic_notification ] ) #NEWLINE# response = self . client . get ( ( ( reverse ( 'spirit:topic:notification:index-unread' ) + '?notif=' ) + str ( response . pk ) ) ) #NEWLINE# self . assertEqual ( list ( response . context [ 'page' ] ) , [ self . topic_notification ] )