관리-도구
편집 파일: test_Path.cpython-311.pyc
� �܋fLs � �$ � d dl mZ d dlZd dlZ G d� dej � � Z G d� de� � Z G d� de� � Z G d � d e� � Z G d� de� � Z G d � de� � Z G d� de� � Z dd�Zdd�Ze dk r e� � dS dS )� )�supportNc �8 � e Zd Zd� Zdd�Zd� Zd d�Zd� Zd d�ZdS ) �TestCasec �f � t j � | � � | j j | _ d S �N)r r �setUp�heapy�Path��selfs �m/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/guppy/heapy/test/test_Path.pyr zTestCase.setUp s( � �����t�$�$�$��J�O�� � � � Nc � � | � ||� � }|�#| � t ||� � � � |�t |� � d S t |� � }|� d� � rs|� d� � s^| � |� d� � � � |dd� � d� � }| � ||v � � d S | � ||� � d S )N�<�>� ����,) �relation� assertTrue� isinstance�print�str� startswith�endswith�split�aseq)r �src�dst�relstr�clas�rel�srs r �chkrelzTestCase.chkrel s� � ��m�m�C��%�%�����O�O�J�s�D�1�1�2�2�2��>��#�J�J�J�J�J��S���B��}�}�S�!�!� &�&�*;�*;�C�*@�*@� &�������C� 0� 0�1�1�1���"��X�^�^�C�(�(������"��-�-�-�-�-�� � �"�f�%�%�%�%�%r c �` � |D ]*}| � |t ||� � d|z � � �+d S )Nz%s.)r$ �getattr)r r �attrs�attrs r � chkrelattrzTestCase.chkrelattr sB � �� =� =�D��K�K��W�S�$�/�/��t��<�<�<�<� =� =r c � � | � ||� � }|�t |� � d S |� � � }t |� � dk r|d }| � t |� � t |� � d� � d S )Nr r r )�shpathsr �aslist�lenr r )r r r �expectr"