#NEWLINE# @ testhelp . context ( 'rollback' , 'fileoverlap' ) #NEWLINE# def testSharedErasures( self ) : #NEWLINE# #INDENT# foo1 = self . addComponent ( 'foo:runtime=1' , fileContents = [ ( '/foo' , '1' ) ] ) #NEWLINE# bar1 = self . addComponent ( 'bar:runtime=1' , fileContents = [ ( '/foo' , '1' ) ] ) #NEWLINE# self . updatePkg ( [ 'foo:runtime' , 'bar:runtime' ] ) #NEWLINE# self . checkOwners ( '/foo' , [ self , bar1 ] ) #NEWLINE# self . erasePkg ( self . rootDir , 'foo:runtime' ) #NEWLINE# self . verifyFile ( ( self . rootDir + '/foo' ) , '1' ) #NEWLINE# self . checkOwners ( '/foo' , [ bar1 ] )