#NEWLINE# def _test_put_as_other_user( self , local_site = None ) : #NEWLINE# #INDENT# review_request = self . create_review_request ( with_local_site = ( local_site is not None ) , submitter = 'dopey' , publish = True ) #NEWLINE# self . assertNotEqual ( review_request . submitter , self . user ) #NEWLINE# ReviewRequestDraft . create ( review_request ) #NEWLINE# if local_site : #NEWLINE# #INDENT# local_site_name = local_site . name #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# local_site_name = None #NEWLINE# #UNINDENT# rsp = self . api_put ( get_review_request_draft_url ( review_request , review_request ) , { #NEWLINE# #INDENT# 'description' : 'New description' , #NEWLINE# #UNINDENT# } , expected_mimetype = review_request_draft_item_mimetype ) #NEWLINE# self . assertEqual ( rsp [ 'stat' ] , 'ok' ) #NEWLINE# self . assertTrue ( rsp [ 'draft' ] [ 'description' ] , 'New description' )