#NEWLINE# def test_delete_port_notify( self ) : #NEWLINE# #INDENT# device_id = '32102d7b-1cf4-404d-b50a-97aae1f55f87' #NEWLINE# port_id = 'bee50827-bcee-4cc8-91c1-a27b0ce54222' #NEWLINE# returned_obj = { #NEWLINE# #INDENT# 'port' : { #NEWLINE# #INDENT# 'device_owner' : DEVICE_OWNER_COMPUTE , #NEWLINE# 'id' : port_id , #NEWLINE# 'device_id' : device_id , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# expected_event = { #NEWLINE# #INDENT# 'server_uuid' : device_id , #NEWLINE# 'name' : nova . VIF_DELETED , #NEWLINE# 'tag' : port_id , #NEWLINE# #UNINDENT# } #NEWLINE# event = self . nova_notifier . create_port_changed_event ( 'delete_port' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , returned_obj ) #NEWLINE# self . assertEqual ( expected_event , event )