class_docstr: Test finding frozen modules.
class_docstr_tok: ["Test","finding","frozen","modules","."]
code: def check_basic(self, spec, name, ispkg=False):
      self.assertEqual(spec.name, name)
      self.assertIs(spec.loader, self.machinery.FrozenImporter)
      self.assertEqual(spec.origin, "frozen")
      self.assertFalse(spec.has_location)
      if ispkg:
          self.assertIsNotNone(spec.submodule_search_locations)
      else:
          self.assertIsNone(spec.submodule_search_locations)
      self.assertIsNotNone(spec.loader_state)
  
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 2 for calling the FindSpecTests obj's underlying member method code with example usage: obj.check_basic(spec, name, ispkg) without return types