class_docstr: Testing tabnanny.check().
class_docstr_tok: ["Testing","tabnanny.check","(",")","."]
docstr: A python source code file eligible for raising `IndentationError`.
docstr_tok: ["A","python","source","code","file","eligible","for","raising","`","IndentationError","`","."]
code: def test_when_wrong_indented(self):
      """A python source code file eligible for raising `IndentationError`."""
      with TemporaryPyFile(SOURCE_CODES["wrong_indented"]) as file_path:
          err = (
              "unindent does not match any outer indentation level"
              " (<tokenize>, line 3)\n"
          )
          err = f"{file_path!r}: Indentation Error: {err}"
          with self.assertRaises(SystemExit):
              self.verify_tabnanny_check(file_path, err=err)
  
imports: from unittest import TestCase, mock
  import errno
  import os
  import tabnanny
  import tokenize
  import tempfile
  import textwrap
  from test.support import captured_stderr, captured_stdout, script_helper, findfile
  from test.support.os_helper import unlink
label_desc: Use image node_id 6 for calling the TestCheck obj's underlying member method code with example usage: obj.test_when_wrong_indented() without return types