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

Method test_tilelayer_object

tests/test_folium.py:154–159  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

152 assert bounds == [[None, None], [None, None]], bounds
153
154 def test_tilelayer_object(self):
155 url = "http://{s}.custom_tiles.org/{z}/{x}/{y}.png"
156 attr = "Attribution for custom tiles"
157 m = folium.Map(location=[45.52, -122.67], tiles=TileLayer(url, attr=attr))
158 assert next(iter(m._children.values())).tiles == url
159 assert attr in m._parent.render()
160
161 def test_feature_group(self):
162 """Test FeatureGroup."""

Callers

nothing calls this directly

Calls 2

TileLayerClass · 0.90
renderMethod · 0.45

Tested by

no test coverage detected