'Exception raised when updating a role with `name` too long.'

def test_validate_role_update_request_with_name_too_long_fails(self):

    long_role_name = ('a' * 256)
    request_to_validate = {'name': long_role_name}
    self.assertRaises(exception.SchemaValidationError, self.update_role_validator.validate, request_to_validate)
