#NEWLINE# def _post_new_general_comment( self , review_request , review_id , comment_text , issue_opened = None , issue_status = None ) : #NEWLINE# #INDENT# 'Creates a general comment.\n\n        This returns the response from the API call to create the comment.\n        ' #NEWLINE# if review_request . local_site : #NEWLINE# #INDENT# local_site_name = review_request . local_site . name #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# local_site_name = None #NEWLINE# #UNINDENT# post_data = { #NEWLINE# #INDENT# 'text' : comment_text , #NEWLINE# #UNINDENT# } #NEWLINE# if ( issue_opened is not None ) : #NEWLINE# #INDENT# post_data [ 'issue_opened' ] = issue_opened #NEWLINE# #UNINDENT# if ( issue_status is not None ) : #NEWLINE# #INDENT# post_data [ 'issue_status' ] = issue_status #NEWLINE# #UNINDENT# review = Review . objects . get ( pk = review_id ) #NEWLINE# rsp = self . api_post ( get_review_general_comment_list_url ( review , local_site_name ) , post_data , expected_mimetype = general_comment_item_mimetype ) #NEWLINE# self . assertEqual ( rsp [ 'stat' ] , 'ok' ) #NEWLINE# return rsp