#NEWLINE# def test_record_played_exploration_in_collection_context( self ) : #NEWLINE# #INDENT# completion_model = self . _get_progress_model ( self . owner_id , self . COL_ID_0 ) #NEWLINE# self . assertIsNone ( completion_model ) #NEWLINE# collection_services . record_played_exploration_in_collection_context ( self . owner_id , self . COL_ID_0 , self . EXP_ID_0 ) #NEWLINE# completion_model = self . _get_progress_model ( self . owner_id , self . COL_ID_0 ) #NEWLINE# self . assertIsNotNone ( completion_model ) #NEWLINE# self . assertEqual ( completion_model . completed_explorations , [ self . EXP_ID_0 ] ) #NEWLINE# collection_services . record_played_exploration_in_collection_context ( self . owner_id , self . COL_ID_0 , self . EXP_ID_0 ) #NEWLINE# completion_model = self . _get_progress_model ( self . owner_id , self . COL_ID_0 ) #NEWLINE# self . assertEqual ( completion_model . completed_explorations , [ self . EXP_ID_0 ] ) #NEWLINE# self . save_new_default_collection ( self . COL_ID_1 , completion_model . owner_id ) #NEWLINE# collection_services . record_played_exploration_in_collection_context ( self . owner_id , self . COL_ID_1 , self . EXP_ID_0 ) #NEWLINE# collection_services . record_played_exploration_in_collection_context ( self . owner_id , self . COL_ID_1 , self . EXP_ID_1 ) #NEWLINE# completion_model = self . _get_progress_model ( self . owner_id , self . COL_ID_0 ) #NEWLINE# self . assertEqual ( completion_model . completed_explorations , [ self . EXP_ID_0 ] ) #NEWLINE# collection_services . record_played_exploration_in_collection_context ( self . owner_id , self . COL_ID_0 , self . EXP_ID_2 ) #NEWLINE# collection_services . record_played_exploration_in_collection_context ( self . owner_id , self . COL_ID_0 , self . EXP_ID_1 ) #NEWLINE# completion_model = self . _get_progress_model ( self . owner_id , self . COL_ID_0 ) #NEWLINE# self . assertEqual ( completion_model . completed_explorations , [ self . EXP_ID_0 , self . EXP_ID_2 , self . EXP_ID_1 ] )