class_docstr: Define items common to both sets of tests.
class_docstr_tok: ["Define","items","common","to","both","sets","of","tests","."]
code: def test_delete_char(self):
      delete = self.text.delete
      get = self.text.get
      Equal = self.assertEqual
      self.text.insert("1.0", self.hw)
  
      delete("1.0")
      Equal(get("1.0", "1.end"), "ello")
  
      delete("1.0", "1.1")
      Equal(get("1.0", "1.end"), "llo")
  
      # delete \n and combine 2 lines into 1
      delete("1.end")
      Equal(get("1.0", "1.end"), "lloworld")
  
      self.text.insert("1.3", "\n")
      delete("1.10")
      Equal(get("1.0", "1.end"), "lloworld")
  
      self.text.insert("1.3", "\n")
      delete("1.3", "2.0")
      Equal(get("1.0", "1.end"), "lloworld")
  
imports: import unittest
  from test.support import requires
  from _tkinter import TclError
label_desc: Use image node_id 7 for calling the TextTest obj's underlying member method code with example usage: obj.test_delete_char() without return types