class_docstr: Test finding frozen modules.
class_docstr_tok: ["Test","finding","frozen","modules","."]
code: def test_module(self):
      modules = [
          "__hello__",
          "__phello__.spam",
          "__phello__.ham.eggs",
      ]
      for name in modules:
          with self.subTest(f"{name} -> {name}"):
              spec = self.find(name)
              self.check_basic(spec, name)
              self.check_loader_state(spec)
      modules = {
          "__hello_alias__": "__hello__",
          "_frozen_importlib": "importlib._bootstrap",
      }
      for name, origname in modules.items():
          with self.subTest(f"{name} -> {origname}"):
              spec = self.find(name)
              self.check_basic(spec, name)
              self.check_loader_state(spec, origname)
      modules = [
          "__phello__.__init__",
          "__phello__.ham.__init__",
      ]
      for name in modules:
          origname = "<" + name.rpartition(".")[0]
          filename = resolve_stdlib_file(name)
          with self.subTest(f"{name} -> {origname}"):
              spec = self.find(name)
              self.check_basic(spec, name)
              self.check_loader_state(spec, origname, filename)
      modules = {
          "__hello_only__": ("Tools", "freeze", "flag.py"),
      }
      for name, path in modules.items():
          origname = None
          filename = os.path.join(REPO_ROOT, *path)
          with self.subTest(f"{name} -> {filename}"):
              spec = self.find(name)
              self.check_basic(spec, name)
              self.check_loader_state(spec, origname, filename)
  
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 5 for calling the FindSpecTests obj's underlying member method code with example usage: obj.test_module() without return types