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/mock_idle.pyc
�
4Y~gc@s\dZddlmZdefd��YZdefd��YZdefd��YZd	S(
sqMock classes that imitate idlelib modules or classes.

Attributes and methods will be added as needed for tests.
i����(tTexttFunccBs#eZdZdd�Zd�ZRS(s�Mock function captures args and returns result set by test.

    Attributes:
    self.called - records call even if no args, kwds passed.
    self.result - set by init, returned by call.
    self.args - captures positional arguments.
    self.kwds - captures keyword arguments.

    Most common use will probably be to mock methods.
    Mock_tk.Var and Mbox_func are special variants of this.
    cCs(t|_||_d|_d|_dS(N(tFalsetcalledtresulttNonetargstkwds(tselfR((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_idle.pyt__init__s			cOsDt|_||_||_t|jt�r9|j�n|jSdS(N(tTrueRRRt
isinstanceRt
BaseException(RRR((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_idle.pyt__call__s			N(t__name__t
__module__t__doc__RR	R
(((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_idle.pyRstEditorcBs,eZdZddddd�Zd�ZRS(s7Minimally imitate EditorWindow.EditorWindow class.
    cCst�|_t�|_dS(N(Rttextt
UndoDelegatortundo(Rtflisttfilenametkeytroot((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_idle.pyR	&scCs.|jjd�}|jjd�}||fS(Ns1.0tend(Rtindex(Rtfirsttlast((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_idle.pytget_selection_indices*sN(RRRRR	R(((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_idle.pyR#sRcBs eZdZd�Zd�ZRS(s9Minimally imitate UndoDelegator,UndoDelegator class.
    cGsdS(N((R((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_idle.pytundo_block_start4scGsdS(N((R((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_idle.pytundo_block_stop6s(RRRRR(((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_idle.pyR0s	N(Rtidlelib.idle_test.mock_tkRtobjectRRR(((s@/opt/alt/python27/lib64/python2.7/idlelib/idle_test/mock_idle.pyt<module>s