def launch_new_instance(): """ Launch an instance of Binifier. This is the entry function of the command-line tool `binify`. """ binifier = Binifier() binifier.main()
def setUp(self): self.args = [ 'tests/test-shapefiles/simple-points.shp', 'tests/test-shapefiles/simple-points-grid.shp', '--overwrite', '--suppress-output', ] self.b = Binifier(self.args) self.b.main() self.driver = ogr.GetDriverByName('ESRI Shapefile') self.out_shapefile = self.driver.Open( 'tests/test-shapefiles/simple-points-grid.shp', GA_ReadOnly) self.out_layer = self.out_shapefile.GetLayer()