#NEWLINE# @ mock . patch . object ( console_utils , 'start_shellinabox_console' , autospec = True ) #NEWLINE# def test_start_console( self , mock_exec ) : #NEWLINE# #INDENT# mock_exec . return_value = None #NEWLINE# with task_manager . acquire ( self . context , self . node . uuid ) as task : #NEWLINE# #INDENT# self . driver . console . start_console ( self ) #NEWLINE# #UNINDENT# mock_exec . assert_called_once_with ( self . info [ 'uuid' ] , self . info [ 'port' ] , mock . ANY )