class_docstr: Test venv module functionality.
class_docstr_tok: ["Test","venv","module","functionality","."]
code: def test_config_file_command_key(self):
      options = [
          (None, None, None),  # Default case.
          ("--copies", "symlinks", False),
          ("--without-pip", "with_pip", False),
          ("--system-site-packages", "system_site_packages", True),
          ("--clear", "clear", True),
          ("--upgrade", "upgrade", True),
          ("--upgrade-deps", "upgrade_deps", True),
          ("--prompt", "prompt", True),
          (
              "--without-scm-ignore-files",
              "scm_ignore_files",
              frozenset(),
          ),
      ]
      for opt, attr, value in options:
          with self.subTest(opt=opt, attr=attr, value=value):
              rmtree(self.env_dir)
              if not attr:
                  kwargs = {}
              else:
                  kwargs = {attr: value}
              b = venv.EnvBuilder(**kwargs)
              b.upgrade_dependencies = (
                  Mock()
              )  # avoid pip command to upgrade deps
              b._setup_pip = Mock()  # avoid pip setup
              self.run_with_capture(b.create, self.env_dir)
              data = self.get_text_file_contents("pyvenv.cfg")
              if not attr or opt.endswith("git"):
                  for opt in (
                      "--system-site-packages",
                      "--clear",
                      "--upgrade",
                      "--upgrade-deps",
                      "--prompt",
                  ):
                      self.assertNotRegex(data, rf"command = .* {opt}")
              elif os.name == "nt" and attr == "symlinks":
                  pass
              else:
                  self.assertRegex(data, rf"command = .* {opt}")
  
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 5 for calling the BasicTest obj's underlying member method code with example usage: obj.test_config_file_command_key() without return types