📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-28 01:25:20
📂
/ (Root)
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
importlib_resources
/
tests
/
__pycache__
📍 /opt/hc_python/lib/python3.12/site-packages/importlib_resources/tests/__pycache__
🔄 Refresh
✏️
Editing: test_reader.cpython-312.pyc
Read Only
� }�*j � �� � d dl Zd dlZd dlZd dlmZ d dlmZmZ ddl m Z G d� de j ej � Z G d� d e j ej � Zed k( r ej � yy)� N)� import_module)�MultiplexedPath�NamespaceReader� )�utilc �j � � e Zd ZdZ� fd�Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Z� xZS )�MultiplexedPathTest�namespacedata01c �x �� t �| � � t j | j j d � | _ t j | j d� j � j | _ t j | j d� j � j | _ y )Nr �data01�data02)�super�setUp�pathlib�Path�data�__path__�folder�load_fixture�__file__�parentr r )�self� __class__s ��T/opt/hc_python/lib/python3.12/site-packages/importlib_resources/tests/test_reader.pyr zMultiplexedPathTest.setUp sy �� � �� ���l�l�4�9�9�#5�#5�a�#8�9����l�l�4�#4�#4�X�#>�#G�#G�H�O�O����l�l�4�#4�#4�X�#>�#G�#G�H�O�O��� c �l � | j t � 5 t � d d d � y # 1 sw Y y xY w�N)�assertRaises�FileNotFoundErrorr �r s r �test_init_no_pathsz&MultiplexedPathTest.test_init_no_paths s# � � � � �0� 1��� 2� 1� 1�s �*�3c � � | j t � 5 t | j dz � d d d � y # 1 sw Y y xY w)N�binary.file)r �NotADirectoryErrorr r r s r �test_init_filez"MultiplexedPathTest.test_init_file s. � � � � �1� 2��D�K�K�-�7�8� 3� 2� 2�s �8�Ac �� � t | j � j � D �ch c] }|j �� }} |j d� |h d�k( sJ �y c c}w # t t f$ r Y � w xY w)N�__pycache__> �subdirectory� utf-8.filer# �utf-16.file)r r �iterdir�name�remove�KeyError� ValueError)r �path�contentss r �test_iterdirz MultiplexedPathTest.test_iterdir so � �*9�$�+�+�*F�*N�*N�*P�Q�*P�$�D�I�I�*P��Q� ��O�O�M�*� �W�W�W�W�� R�� �*�%� �� �s �A�A �A.�-A.c � � t | j | j � j � D �ch c] }|j �� }}dD ] } |j |� � |h d�k( sJ �y c c}w # t t f$ r Y �7w xY w)N)r'