[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.138.134.149: ~ $


��Yf��@s�dZddlmZed�ddlZddlmZmZmZddlm	Z	m
Z
Gdd�de
�ZGd	d
�d
ej�Z
edkr�ejdd
�dS)zTest Percolator�)�requiresZguiN)�Text�Tk�END)�
Percolator�	Delegatorc@saeZdZdd�Zdd�Zdd�Zddd	�Zdd
d�Zddd
�ZdS)�MyFiltercCstj|d�dS)N)r�__init__)�self�r�F/opt/alt/python35/lib64/python3.5/idlelib/idle_test/test_percolator.pyr	szMyFilter.__init__cGs||_|jj|�dS)N)�insert_called_with�delegate�insert)r
�argsrrrrs	zMyFilter.insertcGs||_|jj|�dS)N)�delete_called_withr�delete)r
rrrrrs	zMyFilter.deleteNcCs#|j�}|jj||�dS)N)�upperrr)r
�index�chars�tagsrrr�uppercase_insertszMyFilter.uppercase_insertcCs#|j�}|jj||�dS)N)�lowerrr)r
rrrrrr�lowercase_insertszMyFilter.lowercase_insertcCsdS)Nr)r
rrrrrr�dont_insertszMyFilter.dont_insert)	�__name__�
__module__�__qualname__r	rrrrrrrrrr
src@s�eZdZedd��Zedd��Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zdd�ZdS)�PercolatorTestcCs"t�|_t|j�|_dS)N)r�rootr�text)�clsrrr�
setUpClass$szPercolatorTest.setUpClasscCs|`|jj�|`dS)N)r rZdestroy)r!rrr�
tearDownClass)s
zPercolatorTest.tearDownClasscCsTt|j�|_t�|_t�|_|jj|j�|jj|j�dS)N)rr �
percolatorr�
filter_one�
filter_two�insertfilter)r
rrr�setUp/s
zPercolatorTest.setUpcCs$|jj�|jjdt�dS)Nz1.0)r$�closer rr)r
rrr�tearDown6s
zPercolatorTest.tearDowncCse|j|jj�|j|jj|j�|j|jj|j�|j|jj|jj�dS)N)ZassertIsNotNoner%r�assertEqualr$�topr&�bottom)r
rrr�test_insertfilter:sz PercolatorTest.test_insertfiltercCs�t�}|jj|j�|j|jj|j�|j|jj�t�}|jj	|j�|jj	|�|jj|j�|j|jj|�|j|j|j�|j|jj|jj
�|j|jj�dS)N)rr$Zremovefilterr&r+r,r%ZassertIsNonerr'r-)r
�filter_threerrr�test_removefilter@s		z PercolatorTest.test_removefiltercCsL|jjdd�|j|jjdt�d�|j|jjd�dS)Nr�fooz1.0zfoo
)rr1N)r rr+�getr�assertTupleEqualr%r
)r
rrr�test_insertOszPercolatorTest.test_insertcCsH|jj|j_|jjdd�|j|jjdt�d�dS)NrZbArz1.0zBAR
)r%rrr r+r2r)r
rrr�test_modify_insertUsz!PercolatorTest.test_modify_insertcCsst�}|jj|�|jj|j_|jj|j_|jjdd�|j	|jj
dt�d�dS)NrZBaRz1.0zbar
)rr$r'r&rrr%rr r+r2r)r
r/rrr�test_modify_chain_insertZs	z'PercolatorTest.test_modify_chain_insertcCs�|jj|j_|jjdd�|j|jjdt�d�|jj|j_|jjdd�|j|jjdt�d�dS)Nrzfoo barz1.0�
)r%rrr r+r2r)r
rrr�test_dont_insertbszPercolatorTest.test_dont_insertcCs6|jjdd�|j|jjdd�d�dS)NrZhelloz1.0�endzhello
)r rr+r2)r
rrr�test_without_filterjsz"PercolatorTest.test_without_filtercCs_|jjdd�|jjdd�|j|jjdt�d�|j|jjd�dS)Nrr1�1.0�1.2zo
)r;r<)	r rrr+r2rr3r%r)r
rrr�test_deletens
zPercolatorTest.test_deleteN)rrr�classmethodr"r#r(r*r.r0r4r5r6r8r:r=rrrrr"sr�__main__�	verbosity�)�__doc__Ztest.supportrZunittestZtkinterrrrZidlelib.PercolatorrrrZTestCaserr�mainrrrr�<module>s
S

Filemanager

Name Type Size Permission Actions
__init__.cpython-35.opt-1.pyc File 823 B 0644
__init__.cpython-35.opt-2.pyc File 496 B 0644
__init__.cpython-35.pyc File 823 B 0644
htest.cpython-35.opt-1.pyc File 11.44 KB 0644
htest.cpython-35.opt-2.pyc File 9.17 KB 0644
htest.cpython-35.pyc File 11.44 KB 0644
mock_idle.cpython-35.opt-1.pyc File 2.4 KB 0644
mock_idle.cpython-35.opt-2.pyc File 1.71 KB 0644
mock_idle.cpython-35.pyc File 2.4 KB 0644
mock_tk.cpython-35.opt-1.pyc File 11.12 KB 0644
mock_tk.cpython-35.opt-2.pyc File 6.29 KB 0644
mock_tk.cpython-35.pyc File 11.12 KB 0644
test_autocomplete.cpython-35.opt-1.pyc File 4.95 KB 0644
test_autocomplete.cpython-35.opt-2.pyc File 4.93 KB 0644
test_autocomplete.cpython-35.pyc File 4.95 KB 0644
test_autoexpand.cpython-35.opt-1.pyc File 4.13 KB 0644
test_autoexpand.cpython-35.opt-2.pyc File 4.06 KB 0644
test_autoexpand.cpython-35.pyc File 4.13 KB 0644
test_calltips.cpython-35.opt-1.pyc File 10.01 KB 0644
test_calltips.cpython-35.opt-2.pyc File 9.88 KB 0644
test_calltips.cpython-35.pyc File 10.09 KB 0644
test_config_help.cpython-35.opt-1.pyc File 4.31 KB 0644
test_config_help.cpython-35.opt-2.pyc File 4.23 KB 0644
test_config_help.cpython-35.pyc File 4.31 KB 0644
test_config_name.cpython-35.opt-1.pyc File 3.16 KB 0644
test_config_name.cpython-35.opt-2.pyc File 3.08 KB 0644
test_config_name.cpython-35.pyc File 3.16 KB 0644
test_configdialog.cpython-35.opt-1.pyc File 1.43 KB 0644
test_configdialog.cpython-35.opt-2.pyc File 1.27 KB 0644
test_configdialog.cpython-35.pyc File 1.43 KB 0644
test_delegator.cpython-35.opt-1.pyc File 1.1 KB 0644
test_delegator.cpython-35.opt-2.pyc File 1.09 KB 0644
test_delegator.cpython-35.pyc File 1.1 KB 0644
test_editmenu.cpython-35.opt-1.pyc File 2.88 KB 0644
test_editmenu.cpython-35.opt-2.pyc File 2.48 KB 0644
test_editmenu.cpython-35.pyc File 2.88 KB 0644
test_editor.cpython-35.opt-1.pyc File 1.19 KB 0644
test_editor.cpython-35.opt-2.pyc File 1.17 KB 0644
test_editor.cpython-35.pyc File 1.19 KB 0644
test_formatparagraph.cpython-35.opt-1.pyc File 12.41 KB 0644
test_formatparagraph.cpython-35.opt-2.pyc File 11.65 KB 0644
test_formatparagraph.cpython-35.pyc File 12.41 KB 0644
test_grep.cpython-35.opt-1.pyc File 3.08 KB 0644
test_grep.cpython-35.opt-2.pyc File 2.54 KB 0644
test_grep.cpython-35.pyc File 3.08 KB 0644
test_help_about.cpython-35.opt-1.pyc File 1.96 KB 0644
test_help_about.cpython-35.opt-2.pyc File 1.82 KB 0644
test_help_about.cpython-35.pyc File 1.96 KB 0644
test_hyperparser.cpython-35.opt-1.pyc File 8 KB 0644
test_hyperparser.cpython-35.opt-2.pyc File 7.81 KB 0644
test_hyperparser.cpython-35.pyc File 8 KB 0644
test_idlehistory.cpython-35.opt-1.pyc File 6.72 KB 0644
test_idlehistory.cpython-35.opt-2.pyc File 6.57 KB 0644
test_idlehistory.cpython-35.pyc File 6.72 KB 0644
test_io.cpython-35.opt-1.pyc File 8.76 KB 0644
test_io.cpython-35.opt-2.pyc File 8.75 KB 0644
test_io.cpython-35.pyc File 8.76 KB 0644
test_parenmatch.cpython-35.opt-1.pyc File 4.06 KB 0644
test_parenmatch.cpython-35.opt-2.pyc File 3.61 KB 0644
test_parenmatch.cpython-35.pyc File 4.06 KB 0644
test_pathbrowser.cpython-35.opt-1.pyc File 1.31 KB 0644
test_pathbrowser.cpython-35.opt-2.pyc File 1.29 KB 0644
test_pathbrowser.cpython-35.pyc File 1.31 KB 0644
test_percolator.cpython-35.opt-1.pyc File 5.18 KB 0644
test_percolator.cpython-35.opt-2.pyc File 5.13 KB 0644
test_percolator.cpython-35.pyc File 5.18 KB 0644
test_replacedialog.cpython-35.opt-1.pyc File 7.5 KB 0644
test_replacedialog.cpython-35.opt-2.pyc File 7.43 KB 0644
test_replacedialog.cpython-35.pyc File 7.5 KB 0644
test_rstrip.cpython-35.opt-1.pyc File 1.55 KB 0644
test_rstrip.cpython-35.opt-2.pyc File 1.54 KB 0644
test_rstrip.cpython-35.pyc File 1.55 KB 0644
test_searchdialog.cpython-35.opt-1.pyc File 2.42 KB 0644
test_searchdialog.cpython-35.opt-2.pyc File 2.34 KB 0644
test_searchdialog.cpython-35.pyc File 2.42 KB 0644
test_searchdialogbase.cpython-35.opt-1.pyc File 5.79 KB 0644
test_searchdialogbase.cpython-35.opt-2.pyc File 5.58 KB 0644
test_searchdialogbase.cpython-35.pyc File 5.79 KB 0644
test_searchengine.cpython-35.opt-1.pyc File 10.7 KB 0644
test_searchengine.cpython-35.opt-2.pyc File 10.61 KB 0644
test_searchengine.cpython-35.pyc File 10.7 KB 0644
test_text.cpython-35.opt-1.pyc File 6.86 KB 0644
test_text.cpython-35.opt-2.pyc File 6.84 KB 0644
test_text.cpython-35.pyc File 6.86 KB 0644
test_textview.cpython-35.opt-1.pyc File 3.86 KB 0644
test_textview.cpython-35.opt-2.pyc File 3.53 KB 0644
test_textview.cpython-35.pyc File 3.86 KB 0644
test_undodelegator.cpython-35.opt-1.pyc File 4.57 KB 0644
test_undodelegator.cpython-35.opt-2.pyc File 4.3 KB 0644
test_undodelegator.cpython-35.pyc File 4.57 KB 0644
test_warning.cpython-35.opt-1.pyc File 2.84 KB 0644
test_warning.cpython-35.opt-2.pyc File 2.5 KB 0644
test_warning.cpython-35.pyc File 2.84 KB 0644
test_widgetredir.cpython-35.opt-1.pyc File 5.49 KB 0644
test_widgetredir.cpython-35.opt-2.pyc File 5.4 KB 0644
test_widgetredir.cpython-35.pyc File 5.49 KB 0644