def METHOD_NAME(self):
    """Test that the function raises a ValueError if the URL has local file access"""
    @validate_url
    def test_func(url):
        return url
    with pytest.raises(ValueError):
        test_func("file:///etc/passwd")