PATH:
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
importlib_resources
/
tests
import unittest import importlib_resources as resources from . import util class ContentsTests: expected = { '__init__.py', 'binary.file', 'subdirectory', 'utf-16.file', 'utf-8.file', } def test_contents(self): contents = {path.name for path in resources.files(self.data).iterdir()} assert self.expected <= contents class ContentsDiskTests(ContentsTests, util.DiskSetup, unittest.TestCase): pass class ContentsZipTests(ContentsTests, util.ZipSetup, unittest.TestCase): pass class ContentsNamespaceTests(ContentsTests, util.DiskSetup, unittest.TestCase): MODULE = 'namespacedata01' expected = { # no __init__ because of namespace design 'binary.file', 'subdirectory', 'utf-16.file', 'utf-8.file', }
[-] test_open.py
[edit]
[-] _path.py
[edit]
[+]
__pycache__
[-] __init__.py
[edit]
[-] test_reader.py
[edit]
[-] test_path.py
[edit]
[-] test_compatibilty_files.py
[edit]
[-] util.py
[edit]
[-] test_functional.py
[edit]
[-] test_contents.py
[edit]
[-] test_custom.py
[edit]
[-] test_read.py
[edit]
[-] test_util.py
[edit]
[+]
..
[-] test_files.py
[edit]
[+]
compat
[-] zip.py
[edit]
[-] test_resource.py
[edit]