#NEWLINE# def test_get_learner_dict_with_allowed_private_exps( self ) : #NEWLINE# #INDENT# self . save_new_valid_collection ( self . COLLECTION_ID , self . owner_id , exploration_id = self . EXP_ID ) #NEWLINE# self . save_new_valid_exploration ( self . EXP_ID_1 , self . editor_id ) #NEWLINE# collection_services . update_collection ( self . owner_id , self . COLLECTION_ID , [ { #NEWLINE# #INDENT# 'cmd' : collection_domain . CMD_ADD_COLLECTION_NODE , #NEWLINE# 'exploration_id' : self . EXP_ID_1 , #NEWLINE# #UNINDENT# } ] , "Added another creator's private exploration" ) #NEWLINE# rights_manager . publish_collection ( self . owner_id , self . COLLECTION_ID ) #NEWLINE# collection_dict = collection_services . get_learner_collection_dict_by_id ( self . COLLECTION_ID , self . owner_id , allow_invalid_explorations = True ) #NEWLINE# collection_node_dicts = collection_dict [ 'nodes' ] #NEWLINE# self . assertEqual ( collection_node_dicts [ 0 ] [ 'exploration_summary' ] [ 'id' ] , self . EXP_ID ) #NEWLINE# self . assertIsNone ( collection_node_dicts [ 1 ] [ 'exploration_summary' ] )