'Exception raised when passing invalid `url` in request.'

def test_validate_endpoint_update_fails_with_invalid_url(self):

    request_to_validate = {'service_id': uuid.uuid4().hex, 'interface': 'public'}
    for url in _INVALID_URLS:
        request_to_validate['url'] = url
        self.assertRaises(exception.SchemaValidationError, self.update_endpoint_validator.validate, request_to_validate)
