관리-도구
편집 파일: test_Path.cpython-37.pyc
B �]�o � @ s� d dl mZ d dlZd dlZG dd� dej�ZG dd� de�ZG dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�Z G dd� de�Z ddd�Zddd�Ze dkr�e� dS )� )�supportNc @ sB e Zd Zdd� Zddd�Zdd� Zddd �Zd d� Zddd �ZdS )�TestCasec C s t j�| � | jj| _d S )N)r r �setUp�heapy�Path)�self� r �M/opt/alt/python37/lib64/python3.7/site-packages/guppy/heapy/test/test_Path.pyr s zTestCase.setUpNc C s� | � ||�}|d k r$| �t||�� |d kr6t|� nZt|�}|�d�r�|�d�s�| �|�d�� |dd� �d�}| �||k� n| �||� d S )N�<�>� ����,) �relation� assertTrue� isinstance�print�str� startswith�endswith�split�aseq)r �src�dstZrelstr�clas�rel�srr r r �chkrel s zTestCase.chkrelc G s* x$|D ]}| � |t||�d| � qW d S )Nz%s.)r �getattr)r r �attrs�attrr r r � chkrelattr s zTestCase.chkrelattrc C sT | � ||�}|d krt|� n2|�� }t|�dkr:|d }| �t|�t|�d� d S )Nr r r )�shpathsr �aslist�lenr r )r r r �expectr Zlir r r �chkpath s zTestCase.chkpathc C s | j �||�S )N)r r )r r r r r r r ( s zTestCase.relationc O s. | � |�}|d k r| � |�}|j|f|�|�S )N)�iso�get_shpaths)r r r �args�kwdsr r r r"