class_docstr: Test zipapp module functionality.
class_docstr_tok: ["Test","zipapp","module","functionality","."]
code: def test_content_of_copied_archive(self):
      # Test that copying an archive doesn't corrupt it.
      source = self.tmpdir / "source"
      source.mkdir()
      (source / "__main__.py").touch()
      target = io.BytesIO()
      zipapp.create_archive(str(source), target, interpreter="python")
      new_target = io.BytesIO()
      target.seek(0)
      zipapp.create_archive(target, new_target, interpreter=None)
      new_target.seek(0)
      with zipfile.ZipFile(new_target, "r") as z:
          self.assertEqual(set(z.namelist()), {"__main__.py"})
  
imports: import io
  import pathlib
  import stat
  import sys
  import tempfile
  import unittest
  import zipapp
  import zipfile
  from test.support import requires_zlib
  from test.support import os_helper
  from unittest.mock import patch
label_desc: Use image node_id 25 for calling the ZipAppTest obj's underlying member method code with example usage: obj.test_content_of_copied_archive() without return types