'Exception is raised when `description` as a non-string value.'

def test_validate_consumer_request_with_invalid_description_fails(self):

    for invalid_desc in _INVALID_DESC_FORMATS:
        request_to_validate = {'description': invalid_desc}
        self.assertRaises(exception.SchemaValidationError, self.create_consumer_validator.validate, request_to_validate)
        self.assertRaises(exception.SchemaValidationError, self.update_consumer_validator.validate, request_to_validate)
