#NEWLINE# def test_topic_notification_create_no_access( self ) : #NEWLINE# #INDENT# '\n        raise Http404 if topic is private and user has no access\n        ' #NEWLINE# private = utils . create_private_topic ( ) #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' : private . topic . pk , #NEWLINE# #UNINDENT# } ) , form_data ) #NEWLINE# self . assertEqual ( response . status_code , 404 )