#NEWLINE# def testNormalizeAppDefaults( self ) : #NEWLINE# #INDENT# r = self . getRecipe ( ) #NEWLINE# path = os . path . join ( os . path . sep , 'etc' , 'X11' , 'app-defaults' , 'foo' ) #NEWLINE# filePath = util . joinPaths ( self . destdir , path ) #NEWLINE# newPath = os . path . join ( self . destdir , 'usr' , 'X11R6' , 'lib' , 'X11' , 'app-defaults' , 'foo' ) #NEWLINE# self . touch ( filePath ) #NEWLINE# r . NormalizeAppDefaults ( ) #NEWLINE# self . captureOutput ( r . _policyMap [ 'NormalizeAppDefaults' ] . doProcess , r ) #NEWLINE# self . assertFalse ( ( not os . path . exists ( newPath ) ) ) #NEWLINE# self . assertFalse ( os . path . exists ( self ) ) #NEWLINE# self . assertEquals ( r . _pathTranslations , [ ( '/etc/X11/app-defaults/foo' , '/usr/X11R6/lib/X11/app-defaults/foo' ) ] )