class_docstr: Test venv module functionality.
class_docstr_tok: ["Test","venv","module","functionality","."]
code: def _check_output_of_default_create(self):
      self.isdir(self.bindir)
      self.isdir(self.include)
      self.isdir(*self.lib)
      # Issue 21197
      p = self.get_env_file("lib64")
      conditions = (
          (struct.calcsize("P") == 8)
          and (os.name == "posix")
          and (sys.platform != "darwin")
      )
      if conditions:
          self.assertTrue(os.path.islink(p))
      else:
          self.assertFalse(os.path.exists(p))
      data = self.get_text_file_contents("pyvenv.cfg")
      executable = sys._base_executable
      path = os.path.dirname(executable)
      self.assertIn("home = %s" % path, data)
      self.assertIn(
          "executable = %s" % os.path.realpath(sys.executable), data
      )
      copies = "" if os.name == "nt" else " --copies"
      cmd = (
          f"command = {sys.executable} -m venv{copies} --without-pip "
          f"--without-scm-ignore-files {self.env_dir}"
      )
      self.assertIn(cmd, data)
      fn = self.get_env_file(self.bindir, self.exe)
      if not os.path.exists(
          fn
      ):  # diagnostics for Windows buildbot failures
          bd = self.get_env_file(self.bindir)
          print("Contents of %r:" % bd)
          print("    %r" % os.listdir(bd))
      self.assertTrue(os.path.exists(fn), "File %r should exist." % fn)
  
imports: import contextlib
  import ensurepip
  import os
  import os.path
  import pathlib
  import re
  import shutil
  import struct
  import subprocess
  import sys
  import sysconfig
  import tempfile
  from test.support import captured_stdout, captured_stderr, skip_if_broken_multiprocessing_synchronize, verbose, requires_subprocess, is_emscripten, is_wasi, requires_venv_with_pip, TEST_HOME_DIR, requires_resource, copy_python_src_ignore
  from test.support.os_helper import can_symlink, EnvironmentVarGuard, rmtree
  import unittest
  import venv
  from unittest.mock import patch, Mock
label_desc: Use image node_id 4 for calling the BasicTest obj's underlying member method code with example usage: obj._check_output_of_default_create() without return types