#NEWLINE# def test_node_set_boot_device_valid( self ) : #NEWLINE# #INDENT# mgr_utils . mock_the_extension_manager ( driver = 'fake_ipmitool' ) #NEWLINE# self . driver = driver_factory . get_driver ( 'fake_ipmitool' ) #NEWLINE# ipmi_info = utils . get_test_ipmi_info ( ) #NEWLINE# node = obj_utils . create_test_node ( self . context , uuid = uuidutils . generate_uuid ( ) , driver = 'fake_ipmitool' , driver_info = ipmi_info ) #NEWLINE# task = task_manager . TaskManager ( self . context , node . uuid ) #NEWLINE# with mock . patch . object ( self . driver . management , 'set_boot_device' ) as mock_sbd : #NEWLINE# #INDENT# conductor_utils . node_set_boot_device ( task , device = 'pxe' ) #NEWLINE# mock_sbd . assert_called_once_with ( task , device = 'pxe' , persistent = False )