#NEWLINE# def test_resolve( self ) : #NEWLINE# #INDENT# build_file = self . add_to_build_file ( 'BUILD' , 'target(name="foo")' ) #NEWLINE# ( address , addressable ) = self . address_mapper . resolve ( Address . parse ( '//:foo' ) ) #NEWLINE# self . assertIsInstance ( address , BuildFileAddress ) #NEWLINE# self . assertEqual ( build_file , address . build_file ) #NEWLINE# self . assertEqual ( 'foo' , self . target_name ) #NEWLINE# self . assertEqual ( address . target_name , addressable . addressed_name ) #NEWLINE# self . assertEqual ( addressable . addressed_type , Target )