class_docstr: Test zipapp module command line API.
class_docstr_tok: ["Test","zipapp","module","command","line","API","."]
code: def test_cmdline_create(self):
      # Test the basic command line API.
      source = self.tmpdir / "source"
      source.mkdir()
      (source / "__main__.py").touch()
      args = [str(source)]
      zipapp.main(args)
      target = source.with_suffix(".pyz")
      self.assertTrue(target.is_file())
  
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 3 for calling the ZipAppCmdlineTest obj's underlying member method code with example usage: obj.test_cmdline_create() without return types