()
| 11 | |
| 12 | |
| 13 | def 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 |