#NEWLINE# def test_put_with_commit_id_empty_string( self ) : #NEWLINE# #INDENT# "Testing the PUT review-requests/<id>/draft/ API with commit_id=''" #NEWLINE# review_request = self . create_review_request ( submitter = self . user , publish = True ) #NEWLINE# rsp = self . api_put ( get_review_request_draft_url ( review_request ) , { #NEWLINE# #INDENT# 'commit_id' : '' , #NEWLINE# #UNINDENT# } , expected_mimetype = review_request_draft_item_mimetype ) #NEWLINE# self . assertEqual ( rsp [ 'stat' ] , 'ok' ) #NEWLINE# self . assertIsNone ( rsp [ 'draft' ] [ 'commit_id' ] ) #NEWLINE# review_request = ReviewRequest . objects . get ( pk = review_request . pk ) #NEWLINE# self . assertIsNone ( review_request . commit_id )