Your IP : 3.23.103.14
3
� 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 j| d � d S )N)r �__init__)�self� r �F/opt/alt/python36/lib64/python3.6/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 � }| jj||� d S )N)�upperr r )r
�index�chars�tagsr r r �uppercase_insert s zMyFilter.uppercase_insertc C s |j � }| jj||� 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 | ` | jj� | `d S )N)r r Zdestroy)r! r r r �
tearDownClass) s
zPercolatorTest.tearDownClassc C s<