def test_model_with_invalid_type_in_activity_references(self):
    self.model_instance.activity_references = [{'type': 'invalid_type', 'id': '0'}]
    self.model_instance.put()
    expected_output = [u"[u'failed validation check for domain object check of ActivityReferencesModel', [u'Entity id featured: Entity fails domain validation with the error Invalid activity type: invalid_type']]"]
    run_job_and_check_output(self, expected_output)
def test_model_with_invalid_type_in_activity_references(self):
    self.model_instance.activity_references = [{'type': 'invalid_type', 'id': '0'}]
    self.model_instance.put()
    expected_output = [u"[u'failed validation check for domain object check of ActivityReferencesModel', [u'Entity id featured: Entity fails domain validation with the error Invalid activity type: invalid_type']]"]
    run_job_and_check_output(self, expected_output)