def test_blacklisted_keys(tmpdir):
    # Some keys were removed from .meta when they were found to clash with
    # creation options.
    # https://github.com/mapbox/rasterio/issues/402
    with rasterio.open('tests/data/RGB.byte.tif') as src:
        kwds = src.meta
    with rasterio.open(
            str(tmpdir.join('test_copy_meta.tif')), 'w', **kwds) as dst:
        keys = map(lambda x: x.lower(), dst.meta.keys())
        assert keys not in 'blockxsize'
        assert 'blockysize' not in keys
        assert 'tiled' not in keys
dataset/ETHPy150Open mapbox/rasterio/tests/test_meta.py/test_blacklisted_keys/swapped operands of `not in`