관리-도구
편집 파일: test_OutputHandling.cpython-37.opt-1.pyc
B �]� � @ s: d dl mZ G dd� dej�Zddd�Zedkr6e� dS ) � )�supportc @ s e Zd Zdd� Zdd� ZdS )� FirstCasec C s t j�| � | jj| _d S )N)r �TestCase�setUpZheapyZOutputHandling�OH)�self� r �W/opt/alt/python37/lib64/python3.7/site-packages/guppy/heapy/test/test_OutputHandling.pyr s zFirstCase.setUpc C s� G dd� d�}| � t|| d��d� || ddd� �}| � t|�d� |j}| � t|�d � | � t|j�d� || dd d� d�}| � t|�d� d S ) Nc @ s e Zd Zddd�Zdd� ZdS )zFirstCase.test_1.<locals>.TNc s4 |j }� fdd�}|| _|j| |dd||d�| _d S )Nc 3 s xt � �D ]} d| V q W d S )Nz%d)�range)�i)�numlinesr r � get_line_iter s z;FirstCase.test_1.<locals>.T.__init__.<locals>.get_line_iter� � )r Z max_top_linesZmax_more_lines� get_num_lines�get_more_msg)r �modZmore_printer�more)r Ztestr r r r r r )r r �__init__ s z$FirstCase.test_1.<locals>.T.__init__c S s | j j�� S )N)r Z_oh_printerZget_str_of_top)r r r r �__repr__ s z$FirstCase.test_1.<locals>.T.__repr__)NN)�__name__� __module__�__qualname__r r r r r r �T s r r z0 1 2 3� c S s dS )Nr r r r r r �<lambda> � z"FirstCase.test_1.<locals>.<lambda>z70 1 2 3 <Lines 0..3 of 6. Type e.g. '_.more' for more.>z4 5c S s dd| S )Nz<%d more rows>r r )�f�tr r r r ) r )r z0 1 2 3 <3 more rows>)Zaseq�strr �top)r r r �xr r r �test_1 s zFirstCase.test_1N)r r r r r"