def test_bleed(
    polygons,
    expected_area_before,
    expected_area_after,
):
    area_polygons = Polygons(polygons)
    assert close_enough(
        area_polygons.estimated_area,
        expected_area_before,
    )
    assert close_enough(
        area_polygons.bleed_by(
            Polygons.approx_bleed_in_degrees).estimated_area,
        expected_area_after,
    )
def test_custom_bleed(
    bleed_distance_in_m,
    expected_area_before,
    expected_area_after,
):
    area_polygons = Polygons([ISLE_OF_DOGS])
    assert close_enough(
        area_polygons.estimated_area,
        expected_area_before,
    )
    assert close_enough(
        area_polygons.bleed_by(
            bleed_distance_in_m /
            Polygons.approx_metres_to_degree).estimated_area,
        expected_area_after,
    )