OwlCyberSecurity - MANAGER
Edit File: test_path.cpython-312.pyc
� C��g� � �b � d dl Z d dlZd dlZd dlZddlmZ G d� dej ej � Z G d� d� Z G d� d e ej ej � Z G d � de ej � Z G d� d e ej ej � Zedk( r ej � yy)� N� )�utilc � � e Zd Zd� Zy)�CommonTestsc � � t j t j |� j |� � 5 d d d � y # 1 sw Y y xY w)N)� resources�as_file�files�joinpath)�self�package�paths �R/opt/hc_python/lib/python3.12/site-packages/importlib_resources/tests/test_path.py�executezCommonTests.execute s4 � � � � �y���w�7�@�@��F� G�� H� G� G�s �A�AN)�__name__� __module__�__qualname__r � � r r r s � �r r c � � e Zd Zd� Zy)� PathTestsc � � t j | j � dz }t j |� 5 }| j |t j � | j |j j d� t |� � | j d|j d�� � ddd� y# 1 sw Y yxY w)zF Path should be readable and a pathlib.Path instance. � utf-8.filezHello, UTF-8 world! zutf-8)�encodingN) r r �datar �assertIsInstance�pathlib�Path� assertTrue�name�endswith�repr�assertEqual� read_text�r �targetr s r �test_readingzPathTests.test_reading s� � � ������+�l�:�� � � �v� &�$��!�!�$����5��O�O�D�I�I�.�.�|�<�d�4�j�I����4�d�n�n�g�n�6V�W� '� &� &�s �A7B8�8CN)r r r r'