()
| 10 | |
| 11 | |
| 12 | def test_terminator(): |
| 13 | m = folium.Map([45.0, 3.0], zoom_start=1) |
| 14 | t = plugins.Terminator().add_to(m) |
| 15 | |
| 16 | out = normalize(m._parent.render()) |
| 17 | |
| 18 | # Verify that the script is okay. |
| 19 | tmpl = Template("L.terminator().addTo({{this._parent.get_name()}});") |
| 20 | expected = normalize(tmpl.render(this=t)) |
| 21 | assert expected in out |
| 22 | |
| 23 | bounds = m.get_bounds() |
| 24 | assert bounds == [[None, None], [None, None]], bounds |
nothing calls this directly
no test coverage detected