def setUp(self):
    super(ExplorationRecommendationsModelValidatorTests, self).setUp()
    self.signup(USER_EMAIL, USER_NAME)
    self.user_id = self.get_user_id_from_email(USER_EMAIL)
    explorations = [exp_domain.Exploration.create_default_exploration(('%s' % i), title=('title %d' % i), category=('category%d' % i)) for i in xrange(6)]
    for exp in explorations:
        exp_services.save_new_exploration(self.user_id, exp)
    recommendations_services.set_recommendations('0', ['3', '4'])
    recommendations_services.set_recommendations('1', ['5'])
    self.model_instance_0 = recommendations_models.ExplorationRecommendationsModel.get_by_id('0')
    self.model_instance_1 = recommendations_models.ExplorationRecommendationsModel.get_by_id('1')
    self.job_class = prod_validation_jobs_one_off.ExplorationRecommendationsModelAuditOneOffJob
def setUp(self):
    super(ExplorationRecommendationsModelValidatorTests, self).setUp()
    self.signup(USER_EMAIL, USER_NAME)
    self.user_id = self.get_user_id_from_email(USER_EMAIL)
    explorations = [exp_domain.Exploration.create_default_exploration(('%s' % i), title=('title %d' % i), category=('category%d' % i)) for i in xrange(6)]
    for exp in explorations:
        exp_services.save_new_exploration(self.user_id, exp)
    recommendations_services.set_recommendations('0', ['3', '4'])
    recommendations_services.set_recommendations('1', ['5'])
    self.model_instance_0 = recommendations_models.ExplorationRecommendationsModel.get_by_id('0')
    self.model_instance_1 = recommendations_models.ExplorationRecommendationsModel.get_by_id('1')
    self.job_class = prod_validation_jobs_one_off.ExplorationRecommendationsModelAuditOneOffJob