#NEWLINE# def test_contribution_msec_does_not_update_on_unpublished_explorations( self ) : #NEWLINE# #INDENT# self . save_new_valid_exploration ( self . EXP_ID , self . owner_id , end_state_name = 'End' ) #NEWLINE# exp_services . publish_exploration_and_update_user_profiles ( self . owner_id , self . EXP_ID ) #NEWLINE# user_services . _update_first_contribution_msec ( self . owner_id , None ) #NEWLINE# rights_manager . unpublish_exploration ( self . admin_id , self . EXP_ID ) #NEWLINE# job_id = user_jobs_one_off . UserFirstContributionMsecOneOffJob . create_new ( ) #NEWLINE# user_jobs_one_off . UserFirstContributionMsecOneOffJob . enqueue ( job_id ) #NEWLINE# self . process_and_flush_pending_tasks ( ) #NEWLINE# self . assertIsNone ( user_services . get_user_settings ( self . owner_id ) . first_contribution_msec )