'Test that an exception is raised when validating improper urls.'

def test_create_entity_with_invalid_urls_fails(self):

    for invalid_url in _INVALID_URLS:
        request_to_validate = {'name': self.resource_name, 'url': invalid_url}
        self.assertRaises(exception.SchemaValidationError, self.create_schema_validator.validate, request_to_validate)
