#NEWLINE# def test_user_cannot_report_own_comment( self ) : #NEWLINE# #INDENT# self . _set_up_private_project_comment_reports ( ) #NEWLINE# res = self . app . post_json_api ( self . private_url , self . payload , auth = self . contributor . auth , expect_errors = True ) #NEWLINE# assert_equal ( res . status_code , 400 ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'detail' ] , 'You cannot report your own comment.' )