docstr: Test odd ball packages which:
  # 1. Do not have a ResourceReader as a loader
  # 2. Are not on the file system
  # 3. Are not in a zip file
docstr_tok: ["Test","odd","ball","packages","which",":","#","1",".","Do","not","have","a","ResourceReader","as","a","loader","#","2",".","Are","not","on","the","file","system","#","3",".","Are","not","in","a","zip","file"]
code: def test_package_has_no_reader_fallback(self):
      """
      Test odd ball packages which:
      # 1. Do not have a ResourceReader as a loader
      # 2. Are not on the file system
      # 3. Are not in a zip file
      """
      module = util.create_package(
          file=data01, path=data01.__file__, contents=["A", "B", "C"]
      )
      # Give the module a dummy loader.
      module.__loader__ = object()
      # Give the module a dummy origin.
      module.__file__ = "/path/which/shall/not/be/named"
      module.__spec__.loader = module.__loader__
      module.__spec__.origin = module.__file__
      self.assertFalse(resources.files(module).joinpath("A").is_file())
  
imports: import contextlib
  import sys
  import unittest
  import uuid
  import pathlib
  from .None import data01
  from .None import zipdata01, zipdata02
  from .None import util
  from importlib import resources, import_module
  from test.support import import_helper, os_helper
  from test.support.os_helper import unlink
label_desc: Use image node_id 1 for calling the ResourceCornerCaseTests obj's underlying member method code with example usage: obj.test_package_has_no_reader_fallback() without return types