def test_model_with_invalid_id(self):
    model_invalid_id = ('%s.%s.%s.%s' % ('a', int(math.floor(time.time())), feconf.ROLE_ACTION_UPDATE, random.randint(0, 1000)))
    model_instance_with_invalid_id = audit_models.RoleQueryAuditModel(id=model_invalid_id, user_id=self.admin_id, intent=feconf.ROLE_ACTION_UPDATE, role='c', username='d')
    model_instance_with_invalid_id.put()
    expected_output = [u"[u'fully-validated RoleQueryAuditModel', 1]", (u"[u'failed validation check for model id check of RoleQueryAuditModel', [u'Entity id %s: Entity id does not match regex pattern']]" % model_invalid_id)]
    run_job_and_check_output(self, expected_output, sort=True)
def test_model_with_invalid_id(self):
    model_invalid_id = ('%s.%s.%s.%s' % ('a', int(math.floor(time.time())), feconf.ROLE_ACTION_UPDATE, random.randint(0, 1000)))
    model_instance_with_invalid_id = audit_models.RoleQueryAuditModel(id=model_invalid_id, user_id=self.admin_id, intent=feconf.ROLE_ACTION_UPDATE, role='c', username='d')
    model_instance_with_invalid_id.put()
    expected_output = [u"[u'fully-validated RoleQueryAuditModel', 1]", (u"[u'failed validation check for model id check of RoleQueryAuditModel', [u'Entity id %s: Entity id does not match regex pattern']]" % model_invalid_id)]
    run_job_and_check_output(self, expected_output, sort=True)