<s> import rasterio <EOL> def test_copy_meta ( tmpdir ) : <EOL> with rasterio . open ( '<STR_LIT>' ) as src : <EOL> kwds = src . meta <EOL> with rasterio . open ( <EOL> str ( tmpdir . join ( '<STR_LIT>' ) ) , '<STR_LIT:w>' , ** kwds ) as dst : <EOL> assert dst . meta [ '<STR_LIT:count>' ] == <NUM_LIT:3> <EOL> def test_blacklisted_keys ( tmpdir ) : <EOL> with rasterio . open ( '<STR_LIT>' ) as src : <EOL> kwds = src . meta <EOL> with rasterio . open ( <EOL> str ( tmpdir . join ( '<STR_LIT>' ) ) , '<STR_LIT:w>' , ** kwds ) as dst : <EOL> keys = map ( lambda x : x . lower ( ) , dst . meta . keys ( ) ) <EOL> assert '<STR_LIT>' not in keys <EOL> assert '<STR_LIT>' not in keys <EOL> assert '<STR_LIT>' not in keys </s>
