def test_dedup_super_function(): data = geometry.GeometryCollection([ geometry.Polygon([[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]]), geometry.Polygon([[1, 0], [2, 0], [2, 1], [1, 1], [1, 0]]), ]) topo = Dedup(data).to_dict() assert len(list(topo.keys())) == 12
def test_super_function_dedup(self): data = geometry.GeometryCollection([ geometry.Polygon([[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]]), geometry.Polygon([[1, 0], [2, 0], [2, 1], [1, 1], [1, 0]]), ]) topo = Dedup(data).to_dict() self.assertEqual( list(topo.keys()), [ "type", "linestrings", "bookkeeping_geoms", "objects", "options", "bbox", "junctions", "bookkeeping_duplicates", "bookkeeping_arcs", "bookkeeping_shared_arcs", ], )