#NEWLINE# def test_put_with_commit_id_and_used_in_review_request( self ) : #NEWLINE# #INDENT# 'Testing the PUT review-requests/<id>/draft/ API with commit_id\n        used in another review request\n        ' #NEWLINE# commit_id = 'abc123' #NEWLINE# self . create_review_request ( submitter = self . user , commit_id = commit_id , publish = True ) #NEWLINE# review_request = self . create_review_request ( submitter = self . user , publish = True ) #NEWLINE# self . api_put ( get_review_request_draft_url ( review_request ) , { #NEWLINE# #INDENT# 'commit_id' : commit_id , #NEWLINE# #UNINDENT# } , expected_status = 409 ) #NEWLINE# review_request = ReviewRequest . objects . get ( pk = self . pk ) #NEWLINE# self . assertIsNone ( review_request . commit_id , None )