403Webshell
Server IP : 172.67.214.6  /  Your IP : 216.73.216.73
Web Server : LiteSpeed
System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : redwjova ( 1790)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/idlelib/idle_test/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/idlelib/idle_test/__pycache__/test_autoexpand.cpython-36.pyc
3

� f �@sldZddlmZddlZddlmZddlmZmZGdd�d�Z	Gdd	�d	ej
�Zed
krhej
dd�dS)
zTest autoexpand, coverage 100%.�)�
AutoExpandN)�requires)�Text�Tkc@seZdZdd�ZdS)�
Dummy_EditwincCs
||_dS)N)�text)�selfr�r	�F/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_autoexpand.py�__init__szDummy_Editwin.__init__N)�__name__�
__module__�__qualname__rr	r	r	r
r	src@sTeZdZedd��Zedd��Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�ZdS)�AutoExpandTestcCs<td�t�|_t|j�|_tt|j��|_dd�|j_dS)NZguicSsdS)Nr	r	r	r	r
�<lambda>sz+AutoExpandTest.setUpClass.<locals>.<lambda>)	rr�tkrrrr�auto_expandZbell)�clsr	r	r
�
setUpClasss
zAutoExpandTest.setUpClasscCs$|`|`t|d�r |jj�|`dS)Nr)rr�hasattrrZdestroy)rr	r	r
�
tearDownClass's

zAutoExpandTest.tearDownClasscCs|jjdd�dS)Nz1.0�end)r�delete)rr	r	r
�tearDown.szAutoExpandTest.tearDowncCs�|j}|jj}|j}||�d�|jdd�||�d�|jdd�||�d�|jdd�||�d�|jdd�||�d�|jdd�||�d	�|jd
d�||�d�|jdd�||�d�dS)
N��insert�tZhis�this� �isz
sample
string�stringz3.0z1.0r)rr�getprevword�assertEqualrr)rr�previous�equalr	r	r
�test_get_prevword1s$z AutoExpandTest.test_get_prevwordcCs�|jj}|jj}|j}|jjdd�||jj�ddddg�|d�||�d�|d�||�d�|d�||�d�|d�||�d�dS)Nrzab ac bx ad ab a�ab�ad�ac�a�event)rr!�expand_word_eventr"rr�getwords)rr#�expandr$r	r	r
�test_before_onlyMszAutoExpandTest.test_before_onlycCs�|j}|jj}|jj}|j}|jdd�|jdd�||jj�ddddg�|d�||�d�|d�||�d�|d�||�d�|d�||�d�dS)	Nrz a, [ab] ac: () bx"" cd ac= ad yaz1.1r&r(r'r)r*)rrr!r+r"r�mark_setr,)rrr#r-r$r	r	r
�test_after_only]szAutoExpandTest.test_after_onlycCs�|j}|jj}|jj}|j}|jdd�|jdd�|jdd�||jj�dddg�|d�||�d�|d�||�d�|d�||�d�dS)	Nrz	ab xy yz
z
a ac by acz2.1r&r(r)r*)rrr!r+r"rr/r,)rrr#r-r$r	r	r
�test_both_before_afterpsz%AutoExpandTest.test_both_before_aftercCs�|j}|jj}|j}||jj�g�||d�d�|jdd�||jj�g�|jdd�|jdd�|d�|jj}|jdd�|d�|jj}|j||�dS)Nr*�breakrz
bx cy dz azac xy a ac ad az1.7z1.end)	rrr+r"r,rr/�stateZassertNotEqual)rrr-r$Z
initial_stateZ	new_stater	r	r
�test_other_expand_cases�sz&AutoExpandTest.test_other_expand_casesN)rr
r�classmethodrrrr%r.r0r1r4r	r	r	r
rsr�__main__�)�	verbosity)�__doc__Zidlelib.autoexpandrZunittestZtest.supportrZtkinterrrrZTestCaserr�mainr	r	r	r
�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit