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

Function test_fullscreen

tests/plugins/test_fullscreen.py:13–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def test_fullscreen():
14 m = folium.Map([47, 3], zoom_start=1)
15 fs = plugins.Fullscreen().add_to(m)
16
17 out = normalize(m._parent.render())
18
19 # verify that the fullscreen control was rendered
20 tmpl = Template(
21 """
22 L.control.fullscreen(
23 {{ this.options|tojavascript }}
24 ).addTo({{this._parent.get_name()}});
25 """
26 )
27
28 assert normalize(tmpl.render(this=fs)) in out

Callers

nothing calls this directly

Calls 4

normalizeFunction · 0.90
TemplateClass · 0.90
add_toMethod · 0.80
renderMethod · 0.45

Tested by

no test coverage detected