관리-도구
편집 파일: test_parenmatch.cpython-36.opt-2.pyc
3 ��2a� � @ s| d dl mZ d dlmZ ed� d dlZd dlmZ d dlmZm Z G dd� d�Z G d d � d ej�Ze dkrxejdd � dS )� )� ParenMatch)�requiresZguiN)�Mock)�Tk�Textc @ s e Zd Zdd� ZdS )�DummyEditwinc C s || _ d| _d| _d| _d S )N� T)�textZindentwidthZtabwidthZcontext_use_ps1)�selfr � r �4/opt/alt/python36/lib64/python3.6/test_parenmatch.py�__init__ s zDummyEditwin.__init__N)�__name__� __module__�__qualname__r r r r r r s r c @ sL e Zd Zedd� �Zedd� �Zdd� Zdd� Zd d � Zdd� Z d d� Z dS )�ParenMatchTestc C s8 t � | _| jj� t| j�| _t| j�| _t� | j_d S )N) r �rootZwithdrawr r r �editwinr Z text_frame)�clsr r r � setUpClass s zParenMatchTest.setUpClassc C s$ | ` | `| jj� | jj� | `d S )N)r r r Zupdate_idletasksZdestroy)r r r r � tearDownClass! s zParenMatchTest.tearDownClassc C s | j jdd� d S )Nz1.0�end)r �delete)r r r r �tearDown( s zParenMatchTest.tearDownc C s t | j�}dd� |_|S )Nc S s d S )Nr r r r r �<lambda>- s z/ParenMatchTest.get_parenmatch.<locals>.<lambda>)r r Zbell)r �pmr r r �get_parenmatch+ s zParenMatchTest.get_parenmatchc C s� | j }| j� }� x�dD ]�\}}}| j|d ��� |jdd� ||_|jd d� |jd� | jd|j� � |dkr�| j |j dd�d � | j |jdd�|� |jd d� |j� | j d|j� � | j|jdd�f � |jd� | j |jdd�|� W d Q R X qW d S )!N�opener�1.10�1.11�default�parens�1.14�1.15�1.16� expression)�stylez1.0r �insertzdef foobar(a, b�eventz<<parenmatch-check-restore>>Zparen�)�r r �r r �r r* r+ �r r �r r �r r- r. �r"