403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.141
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/idlelib/idle_test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/idlelib/idle_test/__pycache__/mock_idle.cpython-315.pyc
R
>lqj�c�T�Qs]QHGsQQ2sQQ2sQQ2sP!)zqMock classes that imitate idlelib modules or classes.

Attributes and methods will be added as needed for tests.
)�Textc�6`�\sQs]snQsQQksQsQsUsP!)�Funca2Record call, capture args, return/raise result set by test.

When mock function is called, set or use attributes:
self.called - increment call number even if no args, kwds passed.
self.args - capture positional arguments.
self.kwds - capture keyword arguments.
self.result - return or raise value set in __init__.
self.return_self - return self instead, to mock query class return.

Most common use will probably be to mock instance methods.
Given class instance, can set and delete as instance attribute.
Mock_tk.Var and Mbox_func are special variants of this.
c�J�]UmVmV mPUmPUmP!)�)�called�result�return_self�args�kwds)�selfrrs&&&�0C:\Python315\\Lib\idlelib\idle_test\mock_idle.py�__init__�
Func.__init__s"�������&����	���	�c���U9O]*
tmVmV m[UO[
2%c
UOgUO%cU!UO!)�)rr	r
�
isinstancer�
BaseExceptionr)rr	r
s&*,r�__call__�
Func.__call__sP�����q����	��	��d�k�k�=�1�1��+�+��
�
�
�
��K��;�;�r)r	rr
rr)NF)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__r
r�__static_attributes__�__classdictcell__��
__classdict__s@rrrs������	�	rrc�6`�\sQs](snQsQQksQsQsUsP!)�Editorz1Minimally imitate editor.EditorWindow class.
    c�X�S9%f[2Um[2UmP!�N)r�text�
UndoDelegator�undo)r�flist�filename�key�rootr#s&&&&&&rr
�Editor.__init__+s���N�N�D�F��	�!�O��	rc�v�UOOQ2oUOOQ2oV1!)z1.0�end)r#�index)r�first�lasts&  r�get_selection_indices�Editor.get_selection_indices0s.���	�	����&���y�y���u�%���{�r)r#r%)NNNNN)	rrrrrr
r0rrrs@rr r (s�����$�
�rr c�2`�\sQs]6snQsQsQsQsUsP!)r$z0Minimally imitate undo.UndoDelegator class.
    c��P!r"��r	s*r�undo_block_start�UndoDelegator.undo_block_start:���rc��P!r"r4r5s*r�undo_block_stop�UndoDelegator.undo_block_stop<r8rr4)	rrrrrr6r:rrrs@rr$r$6s�����
�
�
rr$)r�idlelib.idle_test.mock_tkrrr r$r4rr�<module>r=s.���
+���@��
�
r

Youez - 2016 - github.com/yon3zu
LinuXploit