'Exception raised when using invalid id strings.'

def test_create_entity_with_invalid_id_strings(self):

    long_string = ('A' * 65)
    invalid_id_strings = ['', long_string]
    for invalid_id in invalid_id_strings:
        request_to_validate = {'name': self.resource_name, 'id_string': invalid_id}
        self.assertRaises(exception.SchemaValidationError, self.create_schema_validator.validate, request_to_validate)
