class_docstr: Test venv module functionality.
class_docstr_tok: ["Test","venv","module","functionality","."]
docstr: Test that ``scm_ignore_files`` can work with multiple SCMs.
docstr_tok: ["Test","that","``","scm_ignore_files","``","can","work","with","multiple","SCMs","."]
code: def test_create_scm_ignore_files_multiple(self):
      """
      Test that ``scm_ignore_files`` can work with multiple SCMs.
      """
      bzrignore_name = ".bzrignore"
      contents = "# For Bazaar.\n*\n"
  
      class BzrEnvBuilder(venv.EnvBuilder):
          def create_bzr_ignore_file(self, context):
              gitignore_path = os.path.join(
                  context.env_dir, bzrignore_name
              )
              with open(gitignore_path, "w", encoding="utf-8") as file:
                  file.write(contents)
  
      builder = BzrEnvBuilder(scm_ignore_files={"git", "bzr"})
      self.run_with_capture(builder.create, self.env_dir)
  
      gitignore_lines = self.get_text_file_contents(
          ".gitignore"
      ).splitlines()
      self.assertIn("*", gitignore_lines)
  
      bzrignore = self.get_text_file_contents(bzrignore_name)
      self.assertEqual(bzrignore, contents)
  
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 29 for calling the BasicTest obj's underlying member method code with example usage: obj.test_create_scm_ignore_files_multiple() without return types