#NEWLINE# @ mock . patch . object ( utils , 'is_neutron' , return_value = False ) #NEWLINE# def test_get_neutron_event_not_neutron_network( self , mock_is_neutron ) : #NEWLINE# #INDENT# network_info = [ { #NEWLINE# #INDENT# 'active' : False , #NEWLINE# 'id' : 1 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'active' : True , #NEWLINE# 'id' : 2 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'active' : False , #NEWLINE# 'id' : 3 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'id' : 4 , #NEWLINE# #UNINDENT# } ] #NEWLINE# power_on = True #NEWLINE# first_boot = True #NEWLINE# events = self . vmops . _get_neutron_events ( network_info , power_on , network_info ) #NEWLINE# self . assertEqual ( [ ] , events )