'Exception when validating a create request with invalid `name`.'

def test_validate_user_create_fails_with_invalid_name(self):

    for invalid_name in _INVALID_NAMES:
        request_to_validate = {'name': invalid_name}
        self.assertRaises(exception.SchemaValidationError, self.create_user_validator.validate, request_to_validate)
