#NEWLINE# def test_scan_addresses_with_root( self ) : #NEWLINE# #INDENT# self . add_to_build_file ( 'BUILD' , 'target(name="foo")' ) #NEWLINE# subdir_build_file = self . add_to_build_file ( 'subdir/BUILD' , 'target(name="bar")' ) #NEWLINE# subdir_suffix_build_file = self . add_to_build_file ( 'subdir/BUILD.suffix' , 'target(name="baz")' ) #NEWLINE# subdir = os . path . join ( subdir_suffix_build_file . build_root , 'subdir' ) #NEWLINE# self . assertEquals ( { BuildFileAddress ( subdir_build_file , 'bar' ) , BuildFileAddress ( subdir_suffix_build_file , 'baz' ) } , self . address_mapper . scan_addresses ( root = subdir ) )