#NEWLINE# def test_execute_subjob_passes_base_executor_index_to_executor( self ) : #NEWLINE# #INDENT# slave = self . _create_cluster_slave ( ) #NEWLINE# slave . _base_executor_index = 12 #NEWLINE# slave . _master_api = Mock ( ) #NEWLINE# executor = Mock ( ) #NEWLINE# slave . _idle_executors = Mock ( ) #NEWLINE# with patch . object ( builtins , 'open' , mock_open ( read_data = 'asdf' ) ) : #NEWLINE# #INDENT# slave . _execute_subjob ( build_id = 1 , subjob_id = 2 , executor = executor , atomic_commands = [ ] ) #NEWLINE# #UNINDENT# executor . execute_subjob . assert_called_with ( 1 , 2 , [ ] , 12 )