#NEWLINE# def test_contributor_ids( self ) : #NEWLINE# #INDENT# albert_id = self . get_user_id_from_email ( self . ALBERT_EMAIL ) #NEWLINE# bob_id = self . get_user_id_from_email ( self . BOB_EMAIL ) #NEWLINE# self . signup ( self . ALBERT_EMAIL , self . ALBERT_NAME ) #NEWLINE# self . signup ( self . BOB_EMAIL , self . BOB_NAME ) #NEWLINE# self . save_new_valid_collection ( self . COLLECTION_ID , albert_id ) #NEWLINE# changelist_cmds = [ { #NEWLINE# #INDENT# 'cmd' : collection_domain . CMD_EDIT_COLLECTION_PROPERTY , #NEWLINE# 'property_name' : 'title' , #NEWLINE# 'new_value' : 'Collection Bob title' , #NEWLINE# #UNINDENT# } ] #NEWLINE# collection_services . update_collection ( bob_id , self . COLLECTION_ID , changelist_cmds , 'Changed title to Bob title.' ) #NEWLINE# rights_manager . assign_role_for_collection ( albert_id , self . COLLECTION_ID , self . viewer_id , rights_manager . ROLE_VIEWER ) #NEWLINE# rights_manager . assign_role_for_collection ( albert_id , self . COLLECTION_ID , self . editor_id , rights_manager . ROLE_EDITOR ) #NEWLINE# collection_summary = collection_services . get_collection_summary_by_id ( self . COLLECTION_ID ) #NEWLINE# self . assertEqual ( collection_summary . contributor_ids , [ albert_id , bob_id ] )