#NEWLINE# def test_put_issue_status_before_publish( self ) : #NEWLINE# #INDENT# 'Testing the\n        PUT review-requests/<id>/reviews/<id>/diff-comments/<id>/ API\n        with an issue, before review is published\n        ' #NEWLINE# ( comment , review , review_request ) = self . _create_diff_review_with_issue ( ) #NEWLINE# rsp = self . api_put ( get_review_diff_comment_item_url ( comment , comment . id ) , { #NEWLINE# #INDENT# 'issue_status' : 'resolved' , #NEWLINE# #UNINDENT# } , expected_mimetype = review_diff_comment_item_mimetype ) #NEWLINE# self . assertEqual ( rsp [ 'stat' ] , 'ok' ) #NEWLINE# self . assertEqual ( rsp [ 'diff_comment' ] [ 'issue_status' ] , 'open' )