#NEWLINE# def test_raises_address_not_in_two_build_files( self ) : #NEWLINE# #INDENT# self . add_to_build_file ( 'BUILD.1' , 'target(name="foo1")' ) #NEWLINE# self . add_to_build_file ( 'BUILD.2' , 'target(name="foo2")' ) #NEWLINE# address = Address . parse ( ':bar' ) #NEWLINE# with self . assertRaisesRegexp ( BuildFileAddressMapper . AddressNotInBuildFile , '^bar was not found in BUILD files from .*. Perhaps you meant one of:\\s+:foo1 \\(from BUILD.1\\)\\s+:foo2 \\(from BUILD.2\\)$' ) : #NEWLINE# #INDENT# self . address_mapper . resolve ( self )