def test_model_with_invalid_exploration_schema(self):
    expected_output = [(u"[u'failed validation check for domain object check of ExplorationModel', [u'Entity id %s: Entity fails domain validation with the error Invalid language_code: %s']]" % (self.model_instance_0.id, self.model_instance_0.language_code)), u"[u'fully-validated ExplorationModel', 2]"]
    with self.swap(constants, 'ALL_LANGUAGE_CODES', [{'code': 'en', 'description': 'English'}]):
        run_job_and_check_output(self, expected_output, sort=True)
def test_model_with_invalid_exploration_schema(self):
    expected_output = [(u"[u'failed validation check for domain object check of ExplorationModel', [u'Entity id %s: Entity fails domain validation with the error Invalid language_code: %s']]" % (self.model_instance_0.id, self.model_instance_0.language_code)), u"[u'fully-validated ExplorationModel', 2]"]
    with self.swap(constants, 'ALL_LANGUAGE_CODES', [{'code': 'en', 'description': 'English'}]):
        run_job_and_check_output(self, expected_output, sort=True)