#NEWLINE# def test_dissassociate_address_vpc( self ) : #NEWLINE# #INDENT# address . address_engine = address . AddressEngineNeutron ( ) #NEWLINE# self . set_mock_db_items ( fakes . DB_ADDRESS_2 ) #NEWLINE# self . neutron . show_floatingip . return_value = { #NEWLINE# #INDENT# 'floatingip' : fakes . OS_FLOATING_IP_2 , #NEWLINE# #UNINDENT# } #NEWLINE# resp = self . execute ( 'DisassociateAddress' , { #NEWLINE# #INDENT# 'AssociationId' : fakes . ID_EC2_ASSOCIATION_2 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( True , resp [ 'return' ] ) #NEWLINE# self . neutron . update_floatingip . assert_called_once_with ( fakes . ID_OS_FLOATING_IP_2 , { #NEWLINE# #INDENT# 'floatingip' : { #NEWLINE# #INDENT# 'port_id' : None , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . db_api . update_item . assert_called_once_with ( mock . ANY , tools . purge_dict ( fakes . DB_ADDRESS_2 , [ 'network_interface_id' , 'private_ip_address' ] ) )