#NEWLINE# def test_notification( self ) : #NEWLINE# #INDENT# '\n        update notification\n        ' #NEWLINE# category = utils . create_category ( ) #NEWLINE# topic = utils . create_topic ( comment ) #NEWLINE# comment = utils . create_comment ( topic = topic ) #NEWLINE# notification = TopicNotification . objects . create ( user = self . user , topic = topic , comment = comment , is_active = True , action = COMMENT ) #NEWLINE# form_data = { #NEWLINE# #INDENT# 'is_active' : True , #NEWLINE# #UNINDENT# } #NEWLINE# form = NotificationForm ( data = form_data , instance = notification ) #NEWLINE# self . assertEqual ( form . is_valid ( ) , True )