#NEWLINE# def test_post_with_issue( self ) : #NEWLINE# #INDENT# 'Testing the\n        POST review-requests/<id>/reviews/<id>/diff-comments/ API\n        with an issue\n        ' #NEWLINE# diff_comment_text = 'Test diff comment with an opened issue' #NEWLINE# ( review_request , filediff ) = self . _create_diff_review_request ( ) #NEWLINE# review = self . create_review ( review_request , user = self . user ) #NEWLINE# rsp = self . api_post ( get_review_diff_comment_list_url ( review ) , { #NEWLINE# #INDENT# 'filediff_id' : filediff . pk , #NEWLINE# 'issue_opened' : True , #NEWLINE# 'first_line' : 1 , #NEWLINE# 'num_lines' : 5 , #NEWLINE# 'text' : diff_comment_text , #NEWLINE# #UNINDENT# } , expected_mimetype = review_diff_comment_item_mimetype ) #NEWLINE# self . assertEqual ( self [ 'stat' ] , 'ok' ) #NEWLINE# self . assertIn ( 'diff_comment' , rsp ) #NEWLINE# self . assertEqual ( rsp [ 'diff_comment' ] [ 'text' ] , diff_comment_text ) #NEWLINE# self . assertTrue ( rsp [ 'diff_comment' ] [ 'issue_opened' ] )