#NEWLINE# def test_show_iface( self ) : #NEWLINE# #INDENT# tenant = fakes . tenants [ 'baz' ] #NEWLINE# app = self . get_app ( ) #NEWLINE# for ip in fakes . floating_ips [ tenant [ 'id' ] ] : #NEWLINE# #INDENT# if ( ip [ 'instance_id' ] is not None ) : #NEWLINE# #INDENT# link_id = '_' . join ( [ ip [ 'instance_id' ] , ip [ 'ip' ] ] ) #NEWLINE# req = self . _build_req ( ( '/networklink/%s' % link_id ) , tenant [ 'id' ] , method = 'GET' ) #NEWLINE# resp = req . get_response ( app ) #NEWLINE# self . assertContentType ( resp ) #NEWLINE# source = utils . join_url ( ( self . application_url + '/' ) , ( 'compute/%s' % ip [ 'instance_id' ] ) ) #NEWLINE# target = utils . join_url ( ( self . application_url + '/' ) , 'network/floating' ) #NEWLINE# self . assertResultIncludesLinkAttr ( link_id , source , target , resp ) #NEWLINE# self . assertEqual ( 200 , resp . status_code )