관리-도구
편집 파일: test_pyparse.cpython-37.opt-1.pyc
B � fK � @ s` d Z ddlmZ ddlZddlmZ G dd� dej�ZG dd� dej�Ze d kr\ej d d� dS )zTest pyparse, coverage 96%.� )�pyparseN)� namedtuplec @ s e Zd Zdd� Zdd� ZdS )�ParseMapTestc C s` dd� dD �}t �|�}| �|td� td�� | �|td� td�� | �|d td�� d S )Nc S s i | ]}t |�t |��qS � )�ord)�.0�cr r �C/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_pyparse.py� <dictcomp> s z.ParseMapTest.test_parsemap.<locals>.<dictcomp>z � �a�xi� )r ZParseMap�assertEqualr )�selfZ keepwhite�mappingr r r � test_parsemap s zParseMapTest.test_parsemapc C s$ t �dd�}| �d�t j�d� d S )N� z a([{b}])b"c'd zxxx(((x)))x"x'x )r �Parserr � translateZtrans)r �parserr r r � test_trans s zParseMapTest.test_transN)�__name__� __module__�__qualname__r r r r r r r s r c @ s� e Zd Zedd� �Zedd� �Zdd� Zdd� Zd d � Zdd� Z d d� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!S )"�PyParseTestc C s t jddd�| _d S )Nr )�indentwidth�tabwidth)r r r )�clsr r r � setUpClass s zPyParseTest.setUpClassc C s | ` d S )N)r )r r r r � tearDownClass s zPyParseTest.tearDownClassc C s$ | � | jjd� | � | jjd� d S )Nr )r r r r )r r r r � test_init"