#NEWLINE# def test_set_power_off( self , mock_get_ov_client ) : #NEWLINE# #INDENT# oneview_client = mock_get_ov_client ( ) #NEWLINE# oneview_client . power_off . return_value = POWER_OFF #NEWLINE# with task_manager . acquire ( self . context , self . node . uuid ) as task : #NEWLINE# #INDENT# self . driver . power . set_power_state ( task , states . POWER_OFF ) #NEWLINE# #UNINDENT# oneview_client . power_off . assert_called_once_with ( self . info )