def test_sieve_connectivity_queen(diagonal_image):

    assert numpy.array_equal(
        diagonal_image,
        sieve(diagonal_image, diagonal_image.sum(), connectivity=8)
    )
Diagonals are connected, so feature is retained
dataset/ETHPy150Open mapbox/rasterio/tests/test_features.py/test_sieve_connectivity_queen