<s> import os <EOL> from conary_test import rephelp <EOL> testRecipe = """<STR_LIT>""" <EOL> class DirectoryTest ( rephelp . RepositoryHelper ) : <EOL> def setUp ( self ) : <EOL> rephelp . RepositoryHelper . setUp ( self ) <EOL> self . resetRepository ( ) <EOL> self . build ( testRecipe , '<STR_LIT>' ) <EOL> self . tmpdir = os . sep . join ( ( self . rootDir , '<STR_LIT>' ) ) <EOL> def testDir1 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . resetRoot ( ) <EOL> self . updatePkg ( self . rootDir , '<STR_LIT>' ) <EOL> sb = os . stat ( self . tmpdir ) <EOL> assert ( sb . st_mode == <NUM_LIT:0> <NUM_LIT> ) <EOL> def testDir2 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . resetRoot ( ) <EOL> os . mkdir ( self . tmpdir ) <EOL> os . chmod ( self . tmpdir , <NUM_LIT:0> <NUM_LIT> ) <EOL> self . updatePkg ( self . rootDir , '<STR_LIT>' ) <EOL> sb = os . stat ( self . tmpdir ) <EOL> assert ( sb . st_mode == <NUM_LIT:0> <NUM_LIT> ) </s>
