def setUp(self):
    super(ExplorationModelValidatorTests, self).setUp()
    self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
    self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
    language_codes = ['ar', 'en', 'en']
    explorations = [exp_domain.Exploration.create_default_exploration(('%s' % i), title=('title %d' % i), category=('category%d' % i), language_code=language_codes[i]) for i in xrange(3)]
    for exp in explorations:
        exp_services.save_new_exploration(self.owner_id, exp)
    self.model_instance_0 = exp_models.ExplorationModel.get_by_id('0')
    self.model_instance_1 = exp_models.ExplorationModel.get_by_id('1')
    self.model_instance_2 = exp_models.ExplorationModel.get_by_id('2')
    self.job_class = prod_validation_jobs_one_off.ExplorationModelAuditOneOffJob
def setUp(self):
    super(ExplorationModelValidatorTests, self).setUp()
    self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
    self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
    language_codes = ['ar', 'en', 'en']
    explorations = [exp_domain.Exploration.create_default_exploration(('%s' % i), title=('title %d' % i), category=('category%d' % i), language_code=language_codes[i]) for i in xrange(3)]
    for exp in explorations:
        exp_services.save_new_exploration(self.owner_id, exp)
    self.model_instance_0 = exp_models.ExplorationModel.get_by_id('0')
    self.model_instance_1 = exp_models.ExplorationModel.get_by_id('1')
    self.model_instance_2 = exp_models.ExplorationModel.get_by_id('2')
    self.job_class = prod_validation_jobs_one_off.ExplorationModelAuditOneOffJob