#NEWLINE# def check_put_result( self , user , item_rsp , file_attachment , review_request ) : #NEWLINE# #INDENT# file_attachment = FileAttachment . objects . get ( pk = file_attachment . pk ) #NEWLINE# self . assertEqual ( item_rsp [ 'id' ] , file_attachment . pk ) #NEWLINE# self . assertEqual ( file_attachment . draft_caption , 'My new caption' ) #NEWLINE# draft = review_request . get_draft ( ) #NEWLINE# self . assertIsNotNone ( draft ) #NEWLINE# self . assertIn ( file_attachment , draft . file_attachments . all ( ) ) #NEWLINE# self . assertIn ( file_attachment , review_request . file_attachments . all ( ) ) #NEWLINE# self . compare_item ( item_rsp , file_attachment )