class_docstr: Test zipapp module command line API.
class_docstr_tok: ["Test","zipapp","module","command","line","API","."]
code: def test_info_command(self, mock_stdout):
      # Test the output of the info command.
      target = self.make_archive()
      args = [str(target), "--info"]
      with self.assertRaises(SystemExit) as cm:
          zipapp.main(args)
      # Program should exit with a zero return code.
      self.assertEqual(cm.exception.code, 0)
      self.assertEqual(mock_stdout.getvalue(), "Interpreter: <none>\n")
  
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 7 for calling the ZipAppCmdlineTest obj's underlying member method code with example usage: obj.test_info_command(mock_stdout) without return types