docstr: Tests whether the right indices are added.
docstr_tok: ["Tests","whether","the","right","indices","are","added","."]
code: def test_add_indices(self):
      """
      Tests whether the right indices are added.
      """
      strategy = LocalOptimisation()
  
      indices = (1, 3, 4)
      matr = np.zeros((6, 6), dtype=np.int16)
      ind_extra = strategy.add_indices(indices, matr)
  
      expected = [(1, 3, 4, 0), (1, 3, 4, 2), (1, 3, 4, 5)]
  
      assert_equal(ind_extra, expected)
  
imports: from SALib.sample.morris import SampleMorris, LocalOptimisation, BruteForce
  from SALib.sample.morris.morris import _sample_morris
  from SALib.util import read_param_file
  import numpy
  from numpy.testing import assert_equal, assert_allclose
  import numpy.random
  import pytest
  from pytest import fixture, raises
label_desc: Use image node_id 3 for calling the TestLocalMethods obj's underlying member method code with example usage: obj.test_add_indices() without return types