'Exception raised when `name` is greater than 255 characters.'

def test_validate_service_create_fails_when_name_too_long(self):

    long_name = ('a' * 256)
    request_to_validate = {'type': 'compute', 'name': long_name}
    self.assertRaises(exception.SchemaValidationError, self.create_service_validator.validate, request_to_validate)
