#NEWLINE# @ mock . patch . object ( FAKE_CLIENT . port , 'update' ) #NEWLINE# @ mock . patch . object ( FAKE_CLIENT . node , 'list_ports' ) #NEWLINE# @ mock . patch . object ( ironic_driver . IronicDriver , '_unplug_vifs' ) #NEWLINE# def test_plug_vifs_no_network_info( self , mock_uvifs , mock_lp , mock_port_udt ) : #NEWLINE# #INDENT# node_uuid = 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' #NEWLINE# node = ironic_utils . get_test_node ( uuid = node_uuid ) #NEWLINE# port = ironic_utils . get_test_port ( ) #NEWLINE# mock_lp . return_value = [ port ] #NEWLINE# instance = fake_instance . fake_instance_obj ( self . ctx , node = node_uuid ) #NEWLINE# network_info = [ ] #NEWLINE# self . driver . _plug_vifs ( node , instance , network_info ) #NEWLINE# mock_uvifs . assert_called_once_with ( node , instance , network_info ) #NEWLINE# mock_lp . assert_called_once_with ( mock_uvifs ) #NEWLINE# self . assertFalse ( mock_port_udt . called )