def test_dtype_rescaling_uint8_full(tmpdir):
    outputname = str(tmpdir.join('test.tif'))
    runner = CliRunner()
    result = runner.invoke(
        convert,
        ['tests/data/RGB.byte.tif', outputname, '--scale-ratio', '1.0'])
    assert result.exit_code == 0

    src_stats = [
        {"max": 255.0, "mean": 44.434478650699106, "min": 1.0},
        {"max": 255.0, "mean": 66.02203484105824, "min": 1.0},
        {"max": 255.0, "mean": 71.39316199120559, "min": 1.0}]

    with rasterio.open(outputname) as src:
        for band, expected in zip(src.read(masked=True), src_stats):
            assert round(band.min() - expected['min'], 6) == 0.0
            assert round(band.max() - expected['max'], 6) == 0.0
            assert round(band.mean() - expected['mean'], 6) == 0.0
A bookmark menu item is never considered as active, the real item is.
dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_convert.py/test_dtype_rescaling_uint8_full--crossover with--dataset/ETHPy150Open django-admin-tools/django-admin-tools/admin_tools/menu/items.py/Bookmarks.is_selected