OXIESEC PANEL
- Current Dir:
/
/
usr
/
local
/
lib
/
python3.6
/
dist-packages
/
importlib_resources
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 06:58:27 AM
rwxr-xr-x
📄
__init__.py
0 bytes
05/09/2024 06:58:26 AM
rw-r--r--
📁
__pycache__
-
05/09/2024 06:58:27 AM
rwxr-xr-x
📄
_compat.py
435 bytes
05/09/2024 06:58:26 AM
rw-r--r--
📁
data01
-
05/09/2024 06:58:27 AM
rwxr-xr-x
📁
data02
-
05/09/2024 06:58:27 AM
rwxr-xr-x
📁
namespacedata01
-
05/09/2024 06:58:27 AM
rwxr-xr-x
📄
test_compatibilty_files.py
3.18 KB
05/09/2024 06:58:26 AM
rw-r--r--
📄
test_contents.py
968 bytes
05/09/2024 06:58:26 AM
rw-r--r--
📄
test_files.py
1.16 KB
05/09/2024 06:58:26 AM
rw-r--r--
📄
test_open.py
2.5 KB
05/09/2024 06:58:26 AM
rw-r--r--
📄
test_path.py
2.05 KB
05/09/2024 06:58:26 AM
rw-r--r--
📄
test_read.py
2.35 KB
05/09/2024 06:58:26 AM
rw-r--r--
📄
test_reader.py
4.19 KB
05/09/2024 06:58:26 AM
rw-r--r--
📄
test_resource.py
7.95 KB
05/09/2024 06:58:26 AM
rw-r--r--
📄
update-zips.py
1.38 KB
05/09/2024 06:58:26 AM
rw-r--r--
📄
util.py
5.18 KB
05/09/2024 06:58:26 AM
rw-r--r--
📁
zipdata01
-
05/09/2024 06:58:27 AM
rwxr-xr-x
📁
zipdata02
-
05/09/2024 06:58:27 AM
rwxr-xr-x
Editing: test_contents.py
Close
import unittest import importlib_resources as resources from . import data01 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, unittest.TestCase): def setUp(self): self.data = data01 class ContentsZipTests(ContentsTests, util.ZipSetup, unittest.TestCase): pass class ContentsNamespaceTests(ContentsTests, unittest.TestCase): expected = { # no __init__ because of namespace design # no subdirectory as incidental difference in fixture 'binary.file', 'utf-16.file', 'utf-8.file', } def setUp(self): from . import namespacedata01 self.data = namespacedata01