class_docstr: Testing tabnanny.check().
class_docstr_tok: ["Testing","tabnanny.check","(",")","."]
docstr: Directory containing wrongly indented python source code files.
docstr_tok: ["Directory","containing","wrongly","indented","python","source","code","files","."]
code: def test_errored_directory(self):
      """Directory containing wrongly indented python source code files."""
      with tempfile.TemporaryDirectory() as tmp_dir:
          error_file = TemporaryPyFile(
              SOURCE_CODES["wrong_indented"], directory=tmp_dir
          )
          code_file = TemporaryPyFile(
              SOURCE_CODES["error_free"], directory=tmp_dir
          )
          with error_file as e_file, code_file as c_file:
              err = (
                  "unindent does not match any outer indentation level"
                  " (<tokenize>, line 3)\n"
              )
              err = f"{e_file!r}: Indentation Error: {err}"
              with self.assertRaises(SystemExit):
                  self.verify_tabnanny_check(tmp_dir, 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 11 for calling the TestCheck obj's underlying member method code with example usage: obj.test_errored_directory() without return types