def test_to_file(self):
        tempfilename = os.path.join(self.tempdir, 'test.shp')
        self.g3.to_file(tempfilename)
        # Read layer back in?
        s = GeoSeries.from_file(tempfilename)
        self.assertTrue(all(self.g3.geom_equals(s)))
        # TODO: compare crs
Test to_file and from_file
dataset/ETHPy150Open geopandas/geopandas/geopandas/tests/test_geoseries.py/TestSeries.test_to_file