$72 GRAYBYTE WORDPRESS FILE MANAGER $85

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python35/lib64/python3.5/idlelib/idle_test/__pycache__/

HOME
Current File : /opt/alt/python35/lib64/python3.5/idlelib/idle_test/__pycache__//test_replacedialog.cpython-35.pyc


��Yfp �@s�dZddlmZed�ddlZddlmZddlmZmZddl	m
Z
ddljZ
ddljZe
jZe
jZGdd	�d	ej�Zed
kr�ejdd�dS)
z"Unittest for idlelib.ReplaceDialog�)�requiresZguiN)�Mock)�Tk�Text)�Mboxc@s�eZdZedd��Zedd��Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zdd�ZdS)�ReplaceDialogTestcCs�t�|_|jj�tt_tj|j�|_tj	|j|j�|_
t�|j
_t
|j�|_t�|j_t�|j_|j|j
_dS)N)r�rootZwithdrawr�se�tkMessageBox�SearchEngine�engine�rd�
ReplaceDialog�dialogr�okr�textZundo_block_startZundo_block_stop)�cls�r�I/opt/alt/python35/lib64/python3.5/idlelib/idle_test/test_replacedialog.py�
setUpClasss
	zReplaceDialogTest.setUpClasscCs2tt_|`|`|`|jj�|`dS)N)�	orig_mboxr	r
rrrrZdestroy)rrrr�
tearDownClasss	
zReplaceDialogTest.tearDownClasscCs|jjdd�dS)N�insertzThis is a sample sTring)rr)�selfrrr�setUp&szReplaceDialogTest.setUpcCs�|jjjd�|jjjd�|jjjd�|jjjd�|jjjd�|jjjd�|jj	jd�dt
_dt
_|j
jdd�dS)N�FTz1.0�end)r�patvar�setr�replvar�wordvar�casevar�revar�wrapvar�backvar�	showerror�title�messagerZdelete)rrrr�tearDown)s		zReplaceDialogTest.tearDowncCs�|j}|j}|jj}|jj}|jj}|jjd�||jj�|j	��|j
d�|j
d�|jj|j�|�||j	dd�d�|jdd�|j
d�|j
d�|�||j	d	d
�d�|j
d�|j
d�|�||j	d
d�d�|jdd�|j
dd�|j	dd�}|j
d�|�|j	dd�}|||�|jdd�|j
d�|j
d�|�||j	d�d�||j	d�d�|�||j	d�d�||j	d�d�|j	dd�}|�|j	dd�}|||�|j	dd�}|j
d�|�|j	dd�}|||�|jjd�dS)NZasdf�az1.8z1.12rz1.0�is�helloz1.2z1.7�stringZworldz1.23z1.28rz
line42:z
[a-z][\d]+z1.9�i�jz2.1�foobarr)r�assertEqualrrrr�
replace_itZsetpatZgetpat�getr�open�mark_setrZfind_it)rr�equal�pv�rv�replace�before_text�
after_textrrr�test_replace_simple5s^		












z%ReplaceDialogTest.test_replace_simplecCsO|j}|j}|jj}|jj}|jj}|jjjd�|j	dd�|jd�|jd�|�||j
d�d�||j
d�d�|�||j
d�d�||j
d�d�|�||j
d�d�|j	dd	�|jd
�|j
dd�}|�|j
dd�}|||�dS)
NFrz1.4r-r.z1.2z1.5z1.20z1.8r*z1.0r)rr0rrrrr1r#rr4r2)rrr5r6r7r8r9r:rrr�test_replace_wrap_around|s.		


z*ReplaceDialogTest.test_replace_wrap_aroundcCs�|j}|j}|jj}|jj}|jj}|jjjd�|jd�|jd�|�||j	dd�d�||j	dd�d�dS)	NTr*r+z1.0z1.4�Thisz1.5z1.10)
rr0rrrrr1r rr2)rrr5r6r7r8rrr�test_replace_whole_word�s		

z)ReplaceDialogTest.test_replace_whole_wordcCs�|j}|j}|jj}|jj}|jj}|jjjd�|jj	dd�}|jd�|jd�|�|jj	dd�}|||�|jd�|�||j	dd�d�dS)NTz1.0r�this�thatr=z1.4)
r0rrrrrr1r!rr2)rr5rr6r7r8r9r:rrr�test_replace_match_case�s		



z)ReplaceDialogTest.test_replace_match_casecCs�|j}|j}|jj}|jj}|jj}|jjjd�|j	dd�}|jd�|jd�|�|j	dd�}|||�|j
dd�|�||j	dd	�d
�|jd�|�|jdtj
�|jd
tj�|jd�|�|jdtj
�|jdtj�dt_
dt_|jd�|jd�|�|jdtj
�|jdtj�|jjd�||j	�d�dS)NTz1.0rz
[a-z][\d]+r+rz
line42z2.0z2.8Zlinhellor�error�Emptyz[\d�Patternz[a]ztest\zInvalid Replace Expression�'z\')r0rrrrrr1r"rr2r�assertInr%r&r'Zsetcookedpat)rr5rr6r7r8r9r:rrr�test_replace_regex�s@		




		

z$ReplaceDialogTest.test_replace_regexcCs�|j}|j}|jj}|jj}|jj}|jjjd�|j	dd�|jd�|jd�|�||j
dd�d�||j
dd	�d�|�||j
d
d�d�|�||j
dd
�d�dS)NTrz
is as r*�wasz1.2z1.4z2.0z2.3z1.5z1.8)r0rrrrrr1r$rrr2)rr5rr6r7r8rrr�test_replace_backwards�s 		

z(ReplaceDialogTest.test_replace_backwardscCs@|j}|jj}|jj}|jj}|jdd�|jd|jdd�d�|jd�|jd�|�|j	d|jdd��|jj
jd�|jd	�|�|jd
tj
�|jdtj�|jd�|jd
�|�|jj
jd�|jd�|jd�|�dS)Nr�
z1.0r�dr*rHTrrBrCz[s][T]�\Fztext which is not presentr/)rrrrr�replace_allrr2rZassertNotInr"rFr%r&r')rrr6r7rMrrr�test_replace_all�s,	 






z"ReplaceDialogTest.test_replace_allcCs�|j}|jj}|jj}|jj}|j}|jd�|jd�|�||jdd�d�|jj	jd�|jd�|�dS)Nr=rHz	sel.firstzsel.lastTr)
rrrrrZdefault_commandr0rr2r")rrr6r7Zreplace_findr5rrr�test_default_commands		


z&ReplaceDialogTest.test_default_commandN)�__name__�
__module__�__qualname__�classmethodrrrr(r;r<r>rArGrIrNrOrrrrrs
G)r�__main__�	verbosity�)�__doc__Ztest.supportrZunittestZ
unittest.mockrZtkinterrrZidlelib.idle_test.mock_tkrZidlelib.SearchEnginerr	Zidlelib.ReplaceDialogrr
r
rr%ZTestCaserrP�mainrrrr�<module>s
		�


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
12 Aug 2024 8.41 AM
root / linksafe
0755
__init__.cpython-35.opt-1.pyc
0.804 KB
31 May 2024 1.51 PM
root / linksafe
0644
__init__.cpython-35.opt-2.pyc
0.484 KB
31 May 2024 1.51 PM
root / linksafe
0644
__init__.cpython-35.pyc
0.804 KB
31 May 2024 1.51 PM
root / linksafe
0644
htest.cpython-35.opt-1.pyc
11.44 KB
31 May 2024 1.51 PM
root / linksafe
0644
htest.cpython-35.opt-2.pyc
9.166 KB
31 May 2024 1.51 PM
root / linksafe
0644
htest.cpython-35.pyc
11.44 KB
31 May 2024 1.51 PM
root / linksafe
0644
mock_idle.cpython-35.opt-1.pyc
2.399 KB
31 May 2024 1.51 PM
root / linksafe
0644
mock_idle.cpython-35.opt-2.pyc
1.709 KB
31 May 2024 1.51 PM
root / linksafe
0644
mock_idle.cpython-35.pyc
2.399 KB
31 May 2024 1.51 PM
root / linksafe
0644
mock_tk.cpython-35.opt-1.pyc
11.116 KB
31 May 2024 1.51 PM
root / linksafe
0644
mock_tk.cpython-35.opt-2.pyc
6.291 KB
31 May 2024 1.51 PM
root / linksafe
0644
mock_tk.cpython-35.pyc
11.116 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_autocomplete.cpython-35.opt-1.pyc
4.946 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_autocomplete.cpython-35.opt-2.pyc
4.929 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_autocomplete.cpython-35.pyc
4.946 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_autoexpand.cpython-35.opt-1.pyc
4.133 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_autoexpand.cpython-35.opt-2.pyc
4.064 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_autoexpand.cpython-35.pyc
4.133 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_calltips.cpython-35.opt-1.pyc
10.01 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_calltips.cpython-35.opt-2.pyc
9.879 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_calltips.cpython-35.pyc
10.088 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_config_help.cpython-35.opt-1.pyc
4.309 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_config_help.cpython-35.opt-2.pyc
4.231 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_config_help.cpython-35.pyc
4.309 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_config_name.cpython-35.opt-1.pyc
3.16 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_config_name.cpython-35.opt-2.pyc
3.079 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_config_name.cpython-35.pyc
3.16 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_configdialog.cpython-35.opt-1.pyc
1.435 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_configdialog.cpython-35.opt-2.pyc
1.273 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_configdialog.cpython-35.pyc
1.435 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_delegator.cpython-35.opt-1.pyc
1.104 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_delegator.cpython-35.opt-2.pyc
1.086 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_delegator.cpython-35.pyc
1.104 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_editmenu.cpython-35.opt-1.pyc
2.882 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_editmenu.cpython-35.opt-2.pyc
2.483 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_editmenu.cpython-35.pyc
2.882 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_editor.cpython-35.opt-1.pyc
1.188 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_editor.cpython-35.opt-2.pyc
1.171 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_editor.cpython-35.pyc
1.188 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_formatparagraph.cpython-35.opt-1.pyc
12.412 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_formatparagraph.cpython-35.opt-2.pyc
11.65 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_formatparagraph.cpython-35.pyc
12.412 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_grep.cpython-35.opt-1.pyc
3.075 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_grep.cpython-35.opt-2.pyc
2.542 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_grep.cpython-35.pyc
3.075 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_help_about.cpython-35.opt-1.pyc
1.957 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_help_about.cpython-35.opt-2.pyc
1.82 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_help_about.cpython-35.pyc
1.957 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_hyperparser.cpython-35.opt-1.pyc
7.996 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_hyperparser.cpython-35.opt-2.pyc
7.813 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_hyperparser.cpython-35.pyc
7.996 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_idlehistory.cpython-35.opt-1.pyc
6.716 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_idlehistory.cpython-35.opt-2.pyc
6.567 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_idlehistory.cpython-35.pyc
6.716 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_io.cpython-35.opt-1.pyc
8.765 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_io.cpython-35.opt-2.pyc
8.747 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_io.cpython-35.pyc
8.765 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_parenmatch.cpython-35.opt-1.pyc
4.064 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_parenmatch.cpython-35.opt-2.pyc
3.609 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_parenmatch.cpython-35.pyc
4.064 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_pathbrowser.cpython-35.opt-1.pyc
1.309 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_pathbrowser.cpython-35.opt-2.pyc
1.291 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_pathbrowser.cpython-35.pyc
1.309 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_percolator.cpython-35.opt-1.pyc
5.179 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_percolator.cpython-35.opt-2.pyc
5.128 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_percolator.cpython-35.pyc
5.179 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_replacedialog.cpython-35.opt-1.pyc
7.498 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_replacedialog.cpython-35.opt-2.pyc
7.429 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_replacedialog.cpython-35.pyc
7.498 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_rstrip.cpython-35.opt-1.pyc
1.553 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_rstrip.cpython-35.opt-2.pyc
1.535 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_rstrip.cpython-35.pyc
1.553 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_searchdialog.cpython-35.opt-1.pyc
2.419 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_searchdialog.cpython-35.opt-2.pyc
2.34 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_searchdialog.cpython-35.pyc
2.419 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_searchdialogbase.cpython-35.opt-1.pyc
5.785 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_searchdialogbase.cpython-35.opt-2.pyc
5.584 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_searchdialogbase.cpython-35.pyc
5.785 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_searchengine.cpython-35.opt-1.pyc
10.698 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_searchengine.cpython-35.opt-2.pyc
10.606 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_searchengine.cpython-35.pyc
10.698 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_text.cpython-35.opt-1.pyc
6.857 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_text.cpython-35.opt-2.pyc
6.84 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_text.cpython-35.pyc
6.857 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_textview.cpython-35.opt-1.pyc
3.86 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_textview.cpython-35.opt-2.pyc
3.529 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_textview.cpython-35.pyc
3.86 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_undodelegator.cpython-35.opt-1.pyc
4.571 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_undodelegator.cpython-35.opt-2.pyc
4.301 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_undodelegator.cpython-35.pyc
4.571 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_warning.cpython-35.opt-1.pyc
2.839 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_warning.cpython-35.opt-2.pyc
2.497 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_warning.cpython-35.pyc
2.839 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_widgetredir.cpython-35.opt-1.pyc
5.485 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_widgetredir.cpython-35.opt-2.pyc
5.404 KB
31 May 2024 1.51 PM
root / linksafe
0644
test_widgetredir.cpython-35.pyc
5.485 KB
31 May 2024 1.51 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF