<s> import os <EOL> from . . make_temp import make_temp <EOL> def test_basic_temp ( tmpdir ) : <EOL> tmpdir = str ( tmpdir ) <EOL> print tmpdir <EOL> for i in range ( <NUM_LIT:100> ) : <EOL> assert os . path . exists ( make_temp ( tmpdir , '<STR_LIT>' ) ) <EOL> dirs = os . listdir ( tmpdir ) <EOL> assert len ( dirs ) == <NUM_LIT:7> <EOL> assert '<STR_LIT>' in dirs <EOL> def test_keep_temp ( tmpdir ) : <EOL> tmpdir = str ( tmpdir ) <EOL> print tmpdir <EOL> keep_this = os . path . join ( tmpdir , '<STR_LIT>' ) <EOL> for i in range ( <NUM_LIT:100> ) : <EOL> assert os . path . exists ( make_temp ( tmpdir , '<STR_LIT>' , keep_this ) ) <EOL> dirs = os . listdir ( tmpdir ) <EOL> assert len ( dirs ) == <NUM_LIT:8> <EOL> assert '<STR_LIT>' in dirs <EOL> assert '<STR_LIT>' not in dirs </s>
