$65 GRAYBYTE WORDPRESS FILE MANAGER $25

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_undodelegator.cpython-35.pyc


��Yf��@s�dZddlmZed�ddlZddlmZddlmZmZddl	m
Z
ddlmZGd	d
�d
ej
�Zedkr�ejdd
dd�dS)zSUnittest for UndoDelegator in idlelib.UndoDelegator.

Coverage about 80% (retest).
�)�requiresZguiN)�Mock)�Text�Tk)�
UndoDelegator)�
Percolatorc@s�eZdZedd��Zedd��Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dS)�UndoDelegatorTestcCs4t�|_t|j�|_t|j�|_dS)N)r�rootr�textr�
percolator)�cls�r
�I/opt/alt/python35/lib64/python3.5/idlelib/idle_test/test_undodelegator.py�
setUpClassszUndoDelegatorTest.setUpClasscCs3|jjj�|`|`|jj�|`dS)N)rZredir�closer
r	Zdestroy)rr
r
r�
tearDownClasss
zUndoDelegatorTest.tearDownClasscCs>t�|_|jj|j�td|jj�|j_dS)N�wraps)r�	delegatorrZinsertfilterr�bell)�selfr
r
r�setUpszUndoDelegatorTest.setUpcCs7|jj|j�|jjdd�|jj�dS)Nz1.0�end)rZremovefilterrr
�deleteZ
resetcache)rr
r
r�tearDown#szUndoDelegatorTest.tearDowncCsD|j}|jdd�|jdd�|jd�|j|jdd�d�|jdd�|jdd	�|jd
d�|jdd�|jd�|j|jdd�d
�|jd�|j|jdd�d�|jd�|j|jdd�d�|jd�|jjd�|j|jj	j
�dS)N�insertZfoobar�hz<<undo>>z1.0r�
�foo�barz1.2z1.4ZhelloZfoarz1.6z1.3Zevent)r
r�event_generate�assertEqual�getrrZ
undo_event�
assertTruer�called)rr
r
r
r�test_undo_event(s$	




z!UndoDelegatorTest.test_undo_eventcCs�|j}|jdd�|jdd�|jdd�|jd�|jd�|j|jdd�d�|jd�|j|jjj	�dS)Nrrrz1.0z1.3z<<undo>>z<<redo>>)
r
rrrr r!r"rrr#)rr
r
r
r�test_redo_event>s	


z!UndoDelegatorTest.test_redo_eventcCs�|j}|j}|jdd�|jdd�|jdd�|j|j|jfd�|jd�|j|j|jfd
�dS)z�
        Dump_event cannot be tested directly without changing
        environment variables. So, test statements in dump_event
        indirectly
        rrrz1.2z1.4�Tz<<undo>>�FN)r&T)r'F)r
rrrZassertTupleEqual�pointerZ	can_merger)rr
�dr
r
r�test_dump_eventJs		
z!UndoDelegatorTest.test_dump_eventcCs�|j}|j|j��|jjdd�|j|j��t�|_|jd�|j	|j
|j�|j|jj�|jd�|j	|jd�|j|jj�dS)Nr�aTF����)
rr"Z	get_savedr
rZassertFalserZsaved_change_hookZ	set_savedr r(Zsavedr#)rr)r
r
r�test_get_set_savedZs	

z$UndoDelegatorTest.test_get_set_savedcCs�|j}|jdd�|jj�|jdd�|jdd�|jj�|j|jdd�d�|jj�|jdd�|jj�|j|jdd�d�dS)Nrrrz1.0z1.3)r
rrZundo_block_startZundo_block_stopr r!)rr
r
r
r�test_undo_start_stopms	



z&UndoDelegatorTest.test_undo_start_stopcCsd|j}d|j_}xDt|d�D]2}|jdd�|jt|jj�|�q*WdS)N�
rr)r
r�max_undo�rangerZassertLessEqual�lenZundolist)rr
r1�ir
r
r�test_addcmd~s
	zUndoDelegatorTest.test_addcmdN)�__name__�
__module__�__qualname__�classmethodrrrrr$r%r*r.r/r5r
r
r
rrsr�__main__�	verbosityr'�exitF)�__doc__Ztest.supportrZunittestZ
unittest.mockrZtkinterrrZidlelib.UndoDelegatorrZidlelib.PercolatorrZTestCaserr6�mainr
r
r
r�<module>s
w


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