docstr: Test case sensitivity
docstr_tok: ["Test","case","sensitivity"]
code: def test_case_sensitivity(self):
      "Test case sensitivity"
      names = ["A", "a", "b", "c"]
      test = NameValidator().validate(names)
      assert_equal(test, ["A", "a", "b", "c"])
      test = NameValidator(case_sensitive=False).validate(names)
      assert_equal(test, ["A", "A_1", "B", "C"])
      test = NameValidator(case_sensitive="upper").validate(names)
      assert_equal(test, ["A", "A_1", "B", "C"])
      test = NameValidator(case_sensitive="lower").validate(names)
      assert_equal(test, ["a", "a_1", "b", "c"])
  
      # check exceptions
      assert_raises(ValueError, NameValidator, case_sensitive="foobar")
  
imports: import time
  from datetime import date
  import numpy
  from numpy.testing import assert_, assert_equal, assert_allclose, assert_raises
  from numpy.lib._iotools import LineSplitter, NameValidator, StringConverter, has_nested_fields, easy_dtype, flatten_dtype
label_desc: Use image node_id 1 for calling the TestNameValidator obj's underlying member method code with example usage: obj.test_case_sensitivity() without return types