def setUp(self):
    super(RoleQueryAuditModelValidatorTests, self).setUp()
    self.signup(self.ADMIN_EMAIL, self.ADMIN_USERNAME)
    self.signup(USER_EMAIL, USER_NAME)
    self.admin_id = self.get_user_id_from_email(self.ADMIN_EMAIL)
    admin_model = user_models.UserSettingsModel.get_by_id(self.admin_id)
    admin_model.role = feconf.ROLE_ID_ADMIN
    admin_model.put()
    model_id = ('%s.%s.%s.%s' % (self.admin_id, int(math.floor(time.time())), feconf.ROLE_ACTION_UPDATE, random.randint(0, 1000)))
    self.model_instance = audit_models.RoleQueryAuditModel(id=model_id, user_id=self.admin_id, intent=feconf.ROLE_ACTION_UPDATE, role='c', username='d')
    self.model_instance.put()
    self.job_class = prod_validation_jobs_one_off.RoleQueryAuditModelAuditOneOffJob
def setUp(self):
    super(RoleQueryAuditModelValidatorTests, self).setUp()
    self.signup(self.ADMIN_EMAIL, self.ADMIN_USERNAME)
    self.signup(USER_EMAIL, USER_NAME)
    self.admin_id = self.get_user_id_from_email(self.ADMIN_EMAIL)
    admin_model = user_models.UserSettingsModel.get_by_id(self.admin_id)
    admin_model.role = feconf.ROLE_ID_ADMIN
    admin_model.put()
    model_id = ('%s.%s.%s.%s' % (self.admin_id, int(math.floor(time.time())), feconf.ROLE_ACTION_UPDATE, random.randint(0, 1000)))
    self.model_instance = audit_models.RoleQueryAuditModel(id=model_id, user_id=self.admin_id, intent=feconf.ROLE_ACTION_UPDATE, role='c', username='d')
    self.model_instance.put()
    self.job_class = prod_validation_jobs_one_off.RoleQueryAuditModelAuditOneOffJob