관리-도구
편집 파일: test_pyparse.cpython-36.opt-1.pyc
3 � f�H � @ 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 j|�}| j|td� td�� | j|td� td�� | j|d td�� d S )Nc S s i | ]}t |�t |��qS � )�ord)�.0�cr r �C/opt/alt/python36/lib64/python3.6/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 jdd�}| jdjt 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$ | j | jjd� | j | jjd� d S )Nr )r r r r )r r r r � test_init"