def setUp(self):
    super(ExplorationCommitLogEntryModelValidatorTests, self).setUp()
    self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
    self.signup(USER_EMAIL, USER_NAME)
    self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
    explorations = [exp_domain.Exploration.create_default_exploration(('%s' % i), title=('title %d' % i), category=('category%d' % i)) for i in xrange(3)]
    for exp in explorations:
        exp_services.save_new_exploration(self.owner_id, exp)
    self.rights_model_instance = exp_models.ExplorationCommitLogEntryModel(id='rights-1-1', user_id=self.owner_id, username=self.OWNER_USERNAME, exploration_id='1', commit_type='edit', commit_message='', commit_cmds=[], post_commit_status=constants.ACTIVITY_STATUS_PUBLIC, post_commit_community_owned=False, post_commit_is_private=False)
    self.rights_model_instance.put()
    self.model_instance_0 = exp_models.ExplorationCommitLogEntryModel.get_by_id('exploration-0-1')
    self.model_instance_1 = exp_models.ExplorationCommitLogEntryModel.get_by_id('exploration-1-1')
    self.model_instance_2 = exp_models.ExplorationCommitLogEntryModel.get_by_id('exploration-2-1')
    self.job_class = prod_validation_jobs_one_off.ExplorationCommitLogEntryModelAuditOneOffJob
def setUp(self):
    super(ExplorationCommitLogEntryModelValidatorTests, self).setUp()
    self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
    self.signup(USER_EMAIL, USER_NAME)
    self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
    explorations = [exp_domain.Exploration.create_default_exploration(('%s' % i), title=('title %d' % i), category=('category%d' % i)) for i in xrange(3)]
    for exp in explorations:
        exp_services.save_new_exploration(self.owner_id, exp)
    self.rights_model_instance = exp_models.ExplorationCommitLogEntryModel(id='rights-1-1', user_id=self.owner_id, username=self.OWNER_USERNAME, exploration_id='1', commit_type='edit', commit_message=, commit_cmds=[], post_commit_status=constants.ACTIVITY_STATUS_PUBLIC, post_commit_community_owned=False, post_commit_is_private=False)
    self.rights_model_instance.put()
    self.model_instance_0 = exp_models.ExplorationCommitLogEntryModel.get_by_id('exploration-0-1')
    self.model_instance_1 = exp_models.ExplorationCommitLogEntryModel.get_by_id('exploration-1-1')
    self.model_instance_2 = exp_models.ExplorationCommitLogEntryModel.get_by_id('exploration-2-1')
    self.job_class = prod_validation_jobs_one_off.ExplorationCommitLogEntryModelAuditOneOffJob