#NEWLINE# def testFixupManpagePathsLegacyCompat( self ) : #NEWLINE# #INDENT# r = self . getLegacyRecipe ( ) #NEWLINE# filePath = os . path . join ( self . destdir , 'usr' , 'share' , 'man' , 'foo.1' ) #NEWLINE# newPath = os . path . join ( self . destdir , 'usr' , 'share' , 'man' , 'man1' , 'foo.1' ) #NEWLINE# util . mkdirChain ( os . path . dirname ( newPath ) ) #NEWLINE# self . touch ( filePath ) #NEWLINE# r . FixupManpagePaths ( filePath ) #NEWLINE# self . captureOutput ( r . _policyMap [ 'FixupManpagePaths' ] . doProcess , r ) #NEWLINE# self . assertFalse ( ( not os . path . exists ( newPath ) ) ) #NEWLINE# self . assertFalse ( os . path . exists ( filePath ) ) #NEWLINE# self . assertEquals ( r . _pathTranslations , [ ] )