#NEWLINE# def test_topic_notification_update( self ) : #NEWLINE# #INDENT# '\n        update notification\n        ' #NEWLINE# utils . login ( self ) #NEWLINE# form_data = { #NEWLINE# #INDENT# 'is_active' : True , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . post ( reverse ( 'spirit:topic:notification:update' , kwargs = { #NEWLINE# #INDENT# 'pk' : self . topic_notification . pk , #NEWLINE# #UNINDENT# } ) , form_data ) #NEWLINE# self . assertRedirects ( response , self . topic . get_absolute_url ( ) , status_code = 302 ) #NEWLINE# notification = TopicNotification . objects . get ( pk = self . topic_notification . pk ) #NEWLINE# self . assertEqual ( notification . action , COMMENT )