#NEWLINE# def test_save_and_retrieve_collection_summary( self ) : #NEWLINE# #INDENT# collection = self . save_new_valid_collection ( self . COLLECTION_ID , self . owner_id ) #NEWLINE# collection_services . _save_collection ( self . owner_id , collection , '' , _get_collection_change_list ( 'title' , '' ) ) #NEWLINE# collection_services . update_collection ( self . owner_id , self . COLLECTION_ID , [ { #NEWLINE# #INDENT# 'cmd' : 'edit_collection_property' , #NEWLINE# 'property_name' : 'title' , #NEWLINE# 'new_value' : 'A new title' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'cmd' : 'edit_collection_property' , #NEWLINE# 'property_name' : 'category' , #NEWLINE# 'new_value' : 'A new category' , #NEWLINE# #UNINDENT# } ] , 'Change title and category' ) #NEWLINE# retrieved_collection_summary = collection_services . get_collection_summary_by_id ( self . COLLECTION_ID ) #NEWLINE# self . assertEqual ( retrieved_collection_summary . contributor_ids , [ self . owner_id ] ) #NEWLINE# self . assertEqual ( retrieved_collection_summary . title , 'A new title' ) #NEWLINE# self . assertEqual ( retrieved_collection_summary . category , 'A new category' )