def test_model_with_invalid_id(self):
    model_instance_with_invalid_id = email_models.BulkEmailModel(id='invalid:id', recipient_ids=self.recipient_ids, sender_id=self.sender_id, sender_email=self.sender_email, intent=feconf.BULK_EMAIL_INTENT_MARKETING, subject='Email Subject', html_body='Email Body', sent_datetime=datetime.datetime.utcnow())
    model_instance_with_invalid_id.put()
    expected_output = [u"[u'fully-validated BulkEmailModel', 1]", (u"[u'failed validation check for model id check of BulkEmailModel', [u'Entity id %s: Entity id does not match regex pattern']]" % model_instance_with_invalid_id.id)]
    run_job_and_check_output(self, expected_output, sort=True)
def test_model_with_invalid_id(self):
    model_instance_with_invalid_id = email_models.BulkEmailModel(id='invalid:id', recipient_ids=self.recipient_ids, sender_id=self.sender_id, sender_email=self.sender_email, intent=feconf.BULK_EMAIL_INTENT_MARKETING, subject='Email Subject', html_body='Email Body', sent_datetime=datetime.datetime.utcnow())
    model_instance_with_invalid_id.put()
    expected_output = [u"[u'fully-validated BulkEmailModel', 1]", (u"[u'failed validation check for model id check of BulkEmailModel', [u'Entity id %s: Entity id does not match regex pattern']]" % model_instance_with_invalid_id.id)]
    run_job_and_check_output(self, expected_output, sort=True)