def setUp(self):
    super(BulkEmailModelValidatorTests, self).setUp()
    self.sender_email = 'example@example.com'
    self.sender_id = 'sender'
    self.sender_model = user_models.UserSettingsModel(id=self.sender_id, email=self.sender_email)
    self.sender_model.put()
    self.recipient_ids = ['recipient1', 'recipient2']
    self.recipient_model_1 = user_models.UserSettingsModel(id=self.recipient_ids[0], email='example@example.com')
    self.recipient_model_1.put()
    self.recipient_model_2 = user_models.UserSettingsModel(id=self.recipient_ids[1], email='example@example.com')
    self.recipient_model_2.put()
    self.model_id = 'bulkemailid1'
    email_models.BulkEmailModel.create(self.model_id, self.recipient_ids, self.sender_id, self.sender_email, feconf.BULK_EMAIL_INTENT_MARKETING, 'Email Subject', 'Email Body', datetime.datetime.utcnow())
    self.model_instance = email_models.BulkEmailModel.get_by_id(self.model_id)
    self.job_class = prod_validation_jobs_one_off.BulkEmailModelAuditOneOffJob
def setUp(self):
    super(BulkEmailModelValidatorTests, self).setUp()
    self.sender_email = 'example@example.com'
    self.sender_id = 'sender'
    self.sender_model = user_models.UserSettingsModel(id=self.sender_id, email=self.sender_email)
    self.sender_model.put()
    self.recipient_ids = ['recipient1', 'recipient2']
    self.recipient_model_1 = user_models.UserSettingsModel(id=self.recipient_ids[0], email='example@example.com')
    self.recipient_model_1.put()
    self.recipient_model_2 = user_models.UserSettingsModel(id=self.recipient_ids[1], email='example@example.com')
    self.recipient_model_2.put()
    self.model_id = 'bulkemailid1'
    email_models.BulkEmailModel.create(self.model_id, self.recipient_ids, self.sender_id, self.sender_email, feconf.BULK_EMAIL_INTENT_MARKETING, 'Email Subject', 'Email Body', datetime.datetime.utcnow())
    self.model_instance = email_models.BulkEmailModel.get_by_id(self.model_id)
    self.job_class = prod_validation_jobs_one_off.BulkEmailModelAuditOneOffJob