We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1569d9b commit a9de225Copy full SHA for a9de225
tests/test_osm_graph.py
@@ -256,6 +256,12 @@ def test_to_geojson_with_points_and_osm_id(self):
256
nodes_data = json.load(f)
257
self.assertEqual(len(nodes_data['features']), 0)
258
259
+ def test_clean(self):
260
+ osm_graph = OSMGraph.from_geojson(self.nodes_geojson, self.edges_geojson)
261
+ self.assertEqual(len(osm_graph.G.nodes), 3)
262
+ osm_graph.clean()
263
+ self.assertFalse(hasattr(osm_graph, 'G'))
264
+
265
266
if __name__ == '__main__':
267
unittest.main()
0 commit comments