관리-도구
편집 파일: test_percolator.cpython-37.opt-1.pyc
B � f� � @ s~ d Z ddlmZmZ ddlZddlmZ ed� ddlmZm Z m Z G dd� de�ZG d d � d ej�Z edkrzejdd � dS )zTest percolator, coverage 100%.� )� Percolator� DelegatorN)�requiresZgui)�Text�Tk�ENDc @ sB e Zd Zdd� Zdd� Zdd� Zddd �Zdd d�Zddd �ZdS )�MyFilterc C s t �| d � d S )N)r �__init__)�self� r �F/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_percolator.pyr s zMyFilter.__init__c G s || _ | jj|� d S )N)�insert_called_with�delegate�insert)r �argsr r r r s zMyFilter.insertc G s || _ | jj|� d S )N)�delete_called_withr �delete)r r r r r r s zMyFilter.deleteNc C s |� � }| j�||� d S )N)�upperr r )r �index�chars�tagsr r r �uppercase_insert s zMyFilter.uppercase_insertc C s |� � }| j�||� d S )N)�lowerr r )r r r r r r r �lowercase_insert s zMyFilter.lowercase_insertc C s d S )Nr )r r r r r r r �dont_insert s zMyFilter.dont_insert)N)N)N) �__name__� __module__�__qualname__r r r r r r r r r r r s r c @ st e Zd Zedd� �Zedd� �Zdd� Zdd� Zd d � Zdd� Z d d� Z dd� Zdd� Zdd� Z dd� Zdd� ZdS )�PercolatorTestc C s t � | _t| j�| _d S )N)r �rootr �text)�clsr r r � setUpClass$ s zPercolatorTest.setUpClassc C s | ` | j�� | `d S )N)r r Zdestroy)r! r r r � tearDownClass) s zPercolatorTest.tearDownClassc C s<