class_docstr: Test finding frozen modules.
class_docstr_tok: ["Test","finding","frozen","modules","."]
code: def test_package(self):
      packages = [
          "__phello__",
          "__phello__.ham",
      ]
      for name in packages:
          filename = resolve_stdlib_file(name, ispkg=True)
          with self.subTest(f"{name} -> {name}"):
              spec = self.find(name)
              self.check_basic(spec, name, ispkg=True)
              self.check_loader_state(spec, name, filename)
              self.check_search_locations(spec)
      packages = {
          "__phello_alias__": "__hello__",
      }
      for name, origname in packages.items():
          filename = resolve_stdlib_file(origname, ispkg=False)
          with self.subTest(f"{name} -> {origname}"):
              spec = self.find(name)
              self.check_basic(spec, name, ispkg=True)
              self.check_loader_state(spec, origname, filename)
              self.check_search_locations(spec)
  
file_path: cpython/Lib/test/test_importlib/frozen/test_finder.py
imports: from test.test_importlib import abc, util
  import os.path
  import unittest
  from test.support import import_helper, REPO_ROOT, STDLIB_DIR
label_desc: Use image node_id 6 for calling the FindSpecTests obj's underlying member method code with example usage: obj.test_package() without return types