#NEWLINE# def test_topic_notification_create( self ) : #NEWLINE# #INDENT# '\n        create notification\n        ' #NEWLINE# TopicNotification . objects . all ( ) . delete ( ) #NEWLINE# utils . login ( self ) #NEWLINE# form_data = { #NEWLINE# #INDENT# 'is_active' : True , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . post ( reverse ( 'spirit:topic:notification:create' , kwargs = { #NEWLINE# #INDENT# 'topic_id' : self . topic . pk , #NEWLINE# #UNINDENT# } ) , form_data ) #NEWLINE# self . assertRedirects ( response , self . topic . get_absolute_url ( ) , status_code = 302 ) #NEWLINE# self . assertEqual ( len ( TopicNotification . objects . all ( ) ) , 1 )