HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //proc/self/root/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyo
�
4Y~gc@s�ddlZddlmZddlZddlmZddlmZddl	m
Z
ddlmZdZ
dZdejfd	��YZd
dd��YZdejfd
��YZedkr�ejdddd�ndS(i����N(trequires(tText(tHistory(tidleConfsa = 7sb = at	StoreTestcBsJeZdZed��Zd�Zd�Zd�Zd�Zd�Z	RS(s7Tests History.__init__ and History.store with mock TextcCs"t�|_t|j�|_dS(N(tmkTextttextRthistory(tcls((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt
setUpClassscCs#|jjdd�g|j_dS(Ns1.0tend(RtdeleteR(tself((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttearDownscCs�|j|jj|j�|j|jjg�|j|jj�|j|jj�|j|jjtj	ddddd��dS(NtmainRtcyclicitbool(
tassertIsRRtassertEqualtassertIsNonetprefixtpointerRRt	GetOption(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt	test_initscCsP|jjd�|j|jjg�|jjd�|j|jjg�dS(Ntas  a  (RtstoreR(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_store_short!scCs�|jjt�|j|jjtg�|jjt�|j|jjttg�|jjt�|j|jjttg�dS(N(RRtline1Rtline2(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_store_dup'scCsRt|j_d|j_|jjt�|j|jj�|j|jj�dS(Ni(RRRRRRR(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_store_reset/s
(
t__name__t
__module__t__doc__tclassmethodR	R
RRRR(((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyR
s				tTextWrappercBs#eZd�Zd�Zd�ZRS(cCstd|�|_t|_dS(Ntmaster(ttkTextRtFalset_bell(RR$((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt__init__8scCst|j|�S(N(tgetattrR(Rtname((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt__getattr__;scCs
t|_dS(N(tTrueR'(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pytbell=s(RR R(R+R-(((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyR#7s		t	FetchTestcBs�eZdZed��Zd�Zed��Zed�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�Zd�Zd
�ZRS(s-Test History.fetch with wrapped tk.Text.
    cCs*td�tj�|_|jj�dS(Ntgui(RttktTktroottwithdraw(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyR	Cs
cCskt|j�|_}|jdd�|jdd�|jdd�t|�|_tt	g|j_dS(Ns1.0s>>> tiomarks1.4tleft(
R#R2Rtinserttmark_settmark_gravityRRRR(RR((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pytsetUpIscCs|jj�|`dS(N(R2tdestroy(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt
tearDownClassQs
cCs�|j}|j|�|j}||jjdd�|�||jj|�|rct|j_n||j|�||j|�||jj	ddd�d�dS(NR4send-1cR6s==i(
RtfetchRRtgetR'R&RRtcompare(RtreversetlineRtindexR-RtEqual((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt
fetch_testVs	
	cCsRd}|j}|tt|d�|tt|d�|t|dddt�dS(NtiiR-(RCR,RRtNone(RRttest((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_prev_cyclicfs
	cCsRd}|j}|tt|d�|tt|d�|t|dddt�dS(NRDiiR-(RCR&RRRER,(RRRF((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_next_cyclicms
	cCsOd}|jjd|�|jtt|d�|jt|dddt�dS(NRR4iR-(RR6RCR,RRE(RR((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_prev_prefixuscCsOd}|jjd|�|jtt|d�|jt|dddt�dS(NRR4iR-(RR6RCR&RRER,(RR((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_next_prefix{scCs^d}t|j_|j}|tt|d�|tt|d�|tt|ddt�dS(NRDiiR-(R&RRRCR,RR(RRRF((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_prev_noncyclic�s	cCs}d}t|j_|j}|t|dddt�|tt|d�|t|dddt�|t|dddt�dS(NRDR-i(R&RRRCRER,R(RRRF((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_next_noncyclic�s	cCsF|jjdt�|jjdd�|jttdddt�dS(NR?R6R4R-(RR<R,RR7RCRRE(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_cursor_move�scCsS|jjdt�|jjdd�|jjdd�|jttdd�dS(NR?R4R6sa =i(RR<R,RRR6RCR(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_fetch_edit�scCsP|jjd�|j|jjd�|jjd�|j|jjd�dS(Nsdummy eventi(Rthistory_prevRRthistory_nextRE(R((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyttest_history_prev_next�s(RR R!R"R	R9R;R&RCRGRHRIRJRKRLRMRNRQ(((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyR.@s										t__main__t	verbosityitexit((tunittestttest.test_supportRtTkinterR0RR%tidlelib.idle_test.mock_tkRtidlelib.IdleHistoryRtidlelib.configHandlerRRRtTestCaseRR#R.RR(((sG/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_idlehistory.pyt<module>s*	g