()
| 178 | |
| 179 | |
| 180 | def test_get_obj_in_upper_tree(): |
| 181 | m = Map() |
| 182 | fg = FeatureGroup().add_to(m) |
| 183 | marker = Marker(location=(0, 0)).add_to(fg) |
| 184 | assert get_obj_in_upper_tree(marker, FeatureGroup) is fg |
| 185 | assert get_obj_in_upper_tree(marker, Map) is m |
| 186 | # The search should only go up, not down: |
| 187 | with pytest.raises(ValueError): |
| 188 | assert get_obj_in_upper_tree(fg, Marker) |
| 189 | with pytest.raises(ValueError): |
| 190 | assert get_obj_in_upper_tree(marker, Popup) |
| 191 | |
| 192 | |
| 193 | def test_parse_options(): |
nothing calls this directly
no test coverage detected