MCPcopy
hub / github.com/python-visualization/folium / _assert_id_got_added

Function _assert_id_got_added

tests/test_features.py:186–189  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

184 }
185
186 def _assert_id_got_added(data):
187 _geojson = GeoJson(data)
188 assert _geojson.find_identifier() == "feature.id"
189 assert _geojson.data["features"][0]["id"] == "0"
190
191 data_with_id = _create(None, None)
192 data_with_id["features"][0]["id"] = "this-is-an-id"

Callers 1

Calls 2

find_identifierMethod · 0.95
GeoJsonClass · 0.90

Tested by

no test coverage detected