def test_shapes_supported_dtypes(basic_image):

    supported_types = (
        ('int16', -32768),
        ('int32', -2147483648),
        ('uint8', 255),
        ('uint16', 65535),
        ('float32', 1.434532)
    )

    with Env():
        for dtype, test_value in supported_types:
            shape, value = next(shapes(basic_image.astype(dtype) * test_value))
            assert numpy.allclose(value, test_value)
Pretty print a variable. Useful for debugging.
dataset/ETHPy150Open mapbox/rasterio/tests/test_features.py/test_shapes_supported_dtypes--crossover with--dataset/ETHPy150Open IanLewis/kay/kay/lib/jinja2/filters.py/do_pprint