class_docstr: Define items common to both sets of tests.
class_docstr_tok: ["Define","items","common","to","both","sets","of","tests","."]
code: def test_index_data(self):
      index = self.text.index
      self.text.insert("1.0", self.hw)
  
      for dex in -1.0, 0.3, "1.-1", "1.0":
          self.assertEqual(index(dex), "1.0")
  
      for dex in "1.0 lineend", "1.end", "1.33":
          self.assertEqual(index(dex), "1.5")
  
      for dex in "end", "33.44":
          self.assertEqual(index(dex), "3.0")
  
imports: import unittest
  from test.support import requires
  from _tkinter import TclError
label_desc: Use image node_id 3 for calling the TextTest obj's underlying member method code with example usage: obj.test_index_data() without return types