#NEWLINE# def test_disassociate_floatingip_notify( self ) : #NEWLINE# #INDENT# device_id = '32102d7b-1cf4-404d-b50a-97aae1f55f87' #NEWLINE# returned_obj = { #NEWLINE# #INDENT# 'floatingip' : { #NEWLINE# #INDENT# 'port_id' : None , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# original_obj = { #NEWLINE# #INDENT# 'port_id' : '5a39def4-3d3f-473d-9ff4-8e90064b9cc1' , #NEWLINE# #UNINDENT# } #NEWLINE# expected_event = { #NEWLINE# #INDENT# 'server_uuid' : device_id , #NEWLINE# 'name' : 'network-changed' , #NEWLINE# #UNINDENT# } #NEWLINE# event = self . nova_notifier . create_port_changed_event ( 'update_floatingip' , expected_event , returned_obj ) #NEWLINE# self . assertEqual ( expected_event , event )