code: def testTOCWithCustomTitleClass(self):
      self.assertMarkdownRenders(
          self.dedent(
              """
                  [TOC]
                  # Header
                  """
          ),
          self.dedent(
              """
                  <div class="toc"><span class="tocname">ToC</span><ul>
                  <li><a href="#header">Header</a></li>
                  </ul>
                  </div>
                  <h1 id="header">Header</h1>
                  """
          ),
          extensions=[TocExtension(title_class="tocname", title="ToC")],
      )
  
imports: from markdown.test_tools import TestCase
  from markdown.extensions.toc import TocExtension
  from markdown.extensions.nl2br import Nl2BrExtension
label_desc: Use image node_id 29 for calling the TestTOC obj's underlying member method code with example usage: obj.testTOCWithCustomTitleClass() without return types