#NEWLINE# @ testhelp . context ( 'fileoverlap' ) #NEWLINE# def testSharedFileDifferentContentTypes( self ) : #NEWLINE# #INDENT# info = { #NEWLINE# #INDENT# 'owner' : pwd . getpwuid ( os . getuid ( ) ) [ 0 ] , #NEWLINE# 'group' : grp . getgrgid ( os . getgid ( ) ) [ 0 ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . addComponent ( 'foo:runtime=1' , fileContents = [ ( '/etc/f' , RegF ( contents = 'hello' , ** info ) ) ] ) #NEWLINE# self . addComponent ( 'bar:runtime=2' , fileContents = [ ( '/etc/f' , RegF ( contents = 'world' , ** self ) ) ] ) #NEWLINE# self . addComponent ( 'foo:runtime=2' , fileContents = [ ( '/etc/f' , RegF ( contents = 'world' , ** info ) ) ] ) #NEWLINE# self . addComponent ( 'gax:runtime=2' , fileContents = [ ( '/etc/f' , RegF ( contents = 'world' , ** info ) ) ] ) #NEWLINE# self . addComponent ( 'bar:runtime=3' , fileContents = [ ( '/etc/f' , RegF ( contents = 'hello world' , ** info ) ) ] ) #NEWLINE# self . addComponent ( 'foo:runtime=3' , fileContents = [ ( '/etc/f' , RegF ( contents = 'hello world' , ** info ) ) ] ) #NEWLINE# self . addCollection ( 'group-bar=2' , [ 'foo:runtime' , 'bar:runtime' ] ) #NEWLINE# self . addCollection ( 'group-bar=3' , [ 'foo:runtime' , 'bar:runtime' ] ) #NEWLINE# self . addCollection ( 'group-gax=2' , [ 'foo:runtime' , 'gax:runtime' ] ) #NEWLINE# self . updatePkg ( 'foo:runtime=1' ) #NEWLINE# self . updatePkg ( 'group-bar=2' , replaceFiles = True ) #NEWLINE# self . updatePkg ( 'group-bar=3' ) #NEWLINE# self . resetRoot ( ) #NEWLINE# self . updatePkg ( 'foo:runtime=1' ) #NEWLINE# self . updatePkg ( 'group-gax' , replaceFiles = True )