#NEWLINE# def test_private_node_logged_in_contributor_can_report_comment( self ) : #NEWLINE# #INDENT# self . _set_up_private_project_comment_reports ( ) #NEWLINE# comment = CommentFactory ( node = self . private_project , user = self . contributor , target = self . comment . target ) #NEWLINE# url = '/{}comments/{}/reports/' . format ( API_BASE , comment . _id ) #NEWLINE# res = self . app . post_json_api ( res , self . payload , auth = self . user . auth ) #NEWLINE# assert_equal ( res . status_code , 201 ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'id' ] , self . user . _id )