#NEWLINE# def test_floating_ip_disassociate( self ) : #NEWLINE# #INDENT# fip = self . api_q_floating_ips . list ( ) [ 1 ] #NEWLINE# assoc_port = self . api_ports . list ( ) [ 1 ] #NEWLINE# ip_address = assoc_port [ 'fixed_ips' ] [ 0 ] [ 'ip_address' ] #NEWLINE# target_id = ( '%s_%s' % ( assoc_port [ 'id' ] , ip_address ) ) #NEWLINE# self . qclient . update_floatingip ( fip [ 'id' ] , { #NEWLINE# #INDENT# 'floatingip' : { #NEWLINE# #INDENT# 'port_id' : None , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# api . network . floating_ip_disassociate ( self . request , fip [ 'id' ] , target_id )