def test_shapes_connectivity_rook(diagonal_image):

    with Env():
        assert len(list(shapes(diagonal_image, connectivity=4))) == 12
Invoked by the application when the command is run.
dataset/ETHPy150Open mapbox/rasterio/tests/test_features.py/test_shapes_connectivity_rook--crossover with--dataset/ETHPy150Open openstack/cliff/cliff/command.py/Command.run