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