403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.146
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__/test_config.cpython-315.opt-1.pyc
R
>lqj��c��Qs]QHGs]PHs]PHs]PHs]QHGsGs]PH$s	]QH$G
s
]PHs]QH,Gs\Os
\
Os-s\O"P29s\Q$\O"P29s\Q$\O"P29s\Q$\O"P29s\Q$Q	sQ
sQQ\	O02sQ
Q\	O02sQQ\	O02sQQ\	O02sQQ\	O02sQQ\	O02s\Q6Xc\	O@]Q5P!P!)z�Test config, coverage 93%.
(100% for IdleConfParser, IdleUserConfParser*, ConfigChanges).
* Exception is OSError clause in Save method.
Much of IdleConf is also exercised by ConfigDialog and test_configdialog.
)�config)�captured_stderr�findfile)�mock)�Func�main�	highlight�keys�
extensionsc�<�[[mP	[mP!)T)�testcfg�idleConf�userCfg�idlelib�testing���2C:\Python315\\Lib\idlelib\idle_test\test_config.py�setUpModulers���H���G�Orc�<�[[mP
[mP!�F)�usercfgrr
rrrrr�tearDownModuler!s���H���G�Orc�B`�\sQs]&snQsQsQsQsQsQs	Qs
UsP!)�IdleConfParserTestzTest that IdleConfParser worksz�
        [one]
        one = false
        two = true
        three = 10

        [two]
        one = a string
        two = true
        three = false
    c���[OP2oUOUO2UOoUO	UOQQQQ5P
2UO	UOQQQQ5P	2UUOQQQQ5]
2UUOQQ2Q2UO	UOQQQQ5P	2UO	UOQQQQ5P
2UUOQQ2Q2UUOQQ2Q	2UO
UOQ
Q22UUOQ
QQQ
5Q2P!)��one�bool��type�two�three�intza string�true�false�not�exist�DEFAULT��default)r�IdleConfParser�read_string�assertEqual�assertIs�Get�assertIsNone)�self�parser�eqs&  r�test_get�IdleConfParserTest.test_get5s3���&�&�r�*�����4�;�;�'�
�
�
��	
�
�
�f�j�j���F�j�;�U�C��
�
�f�j�j���F�j�;�T�B�
�6�:�:�e�W�5�:�1�2�6�
�6�:�:�e�U�#�Z�0��
�
�f�j�j���F�j�;�T�B��
�
�f�j�j���f�j�=�u�E�	�6�:�:�e�U�#�V�,�
�6�:�:�e�W�%�w�/�	
���&�*�*�U�G�4�5�
�6�:�:�e�W�i�:�8�)�Drc��[OP2oUOUO2UOoUO	UQ2,QN2UO	UQ2,QN2UOUQ2,2P!)rrr z	not exist)rr r!)rr*r+�
GetOptionList�assertCountEqualr,)r0r1�get_lists&  r�test_get_option_list�'IdleConfParserTest.test_get_option_listJsn���&�&�r�*�����4�;�;�'��'�'�����h�u�o�/F�G����h�u�o�/F�G�����+�.��3rc��[OP2oUO2UOUO	2,2P!�r)rr*�Loadr,�sections�r0r1s& r�test_load_nothing�$IdleConfParserTest.test_load_nothingRs2���&�&�r�*�����
�������*�B�/rc��[QQQ5o[OU2oUO2UO	UOQQ2Q2UO	UO
Q2Q,2P!)�cfgparser.1�
configdata��subdir�Foo Bar�foo�newbar)rrr*r=r,r.r6)r0�config_pathr1s&  r�test_load_file�!IdleConfParserTest.test_load_fileWs_���}�\�B���&�&�{�3�����
�������I�u�5�x�@�����-�-�i�8�5�'�Brr)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr3r9r@rK�__static_attributes__�__classdictcell__��
__classdict__s@rrr&s+����(�
�F�E�*4�0�
C�Crrc�T`�\sQs]asnQsQ
QksQsQsQsQs	Qs
QsQ	sUs
P!)�IdleUserConfParserTestz"Test that IdleUserConfParser worksc�0�[OU2!�N)r�IdleUserConfParser)r0�paths&&r�
new_parser�!IdleUserConfParserTest.new_parserds���(�(��.�.rc�&�UO2oUOQ2UOUOQQQ22UO	UOQQQ22UOUOQQQ22UOUO
QQ2Q2UOUOQQQ22UOUO2QQ,2UOUO
QQ2Q2P!)�Foo�barr#r$�Bar)	r\�add_section�
assertTrue�	SetOption�assertFalser,r.r7r>r?s& r�test_set_option�&IdleUserConfParserTest.test_set_optiongs������"�����5�!�����(�(���v�>�?�����)�)�%���?�@�����(�(���w�?�@�������E�5�1�7�;�	
����(�(���v�>�?����f�o�o�/�%���@�������E�5�1�6�:rc�6�UO2oUOQ2UOQQQ2UOUO	QQ22UOUO	QQ22UOUO	QQ22P!)r_r`r#�Not�Exist)r\�
AddSectionrdrc�RemoveOptionrer?s& r�test_remove_option�)IdleUserConfParserTest.test_remove_optionws}�����"�����%� ������v�.�����+�+�E�5�9�:�����,�,�U�E�:�;�����,�,�U�G�<�=rc��UO2oUOUO2,2UOQ2UOQ2UOQ2UO	UO2QQ,2P!)r_ra)r\r,r>rkr7r?s& r�test_add_section�'IdleUserConfParserTest.test_add_section�sl�����"��������*�B�/�	���%� ����%� ����%� ����f�o�o�/�%���@rc�8�UO2oUOQ2UOQ2UOQQQ2UOUO	2,QN2UO2UO
UO	2Q,2P!)r_ra�Idle�name�val)rar_rs)r\rkrdr7r>�RemoveEmptySectionsr,r?s& r�test_remove_empty_sections�1IdleUserConfParserTest.test_remove_empty_sections�sy�����"�����%� ����%� �������/����f�o�o�/�1G�H��"�"�$�������*�V�H�5rc��UO2oUOQ2UOQ2UOUO22UO	UO2,2UO
QQQ2UOQ2UOUO22UOUO2Q,2P!)r_rar`r$)	r\rkrc�IsEmptyr,r>rdrer7r?s& r�
test_is_empty�$IdleUserConfParserTest.test_is_empty�s������"�����%� ����%� �������(�)�������*�B�/������w�/����%� �������)�*����f�o�o�/�%��9rc��[O29^tt^2o[OO	UQ2oUOU2oUO
Q2UOQQQ2UO[OOU22UO2UO[OOU22UOQ2UO2UO[OOU22PPP2P!)%fhP!9h)ztest.cfgr_r`r#)
�tempfile�TemporaryDirectory�osr[�joinr\rkrdre�exists�Saverc�remove_section)r0�tdirr[r1s&   r�	test_save� IdleUserConfParserTest.test_save�s���
�
(�
(�
*�
*�d��7�7�<�<��j�1�D��_�_�T�*�F����e�$����U�E�6�2�
���R�W�W�^�^�D�1�2��K�K�M��O�O�B�G�G�N�N�4�0�1�
�!�!�%�(��K�K�M����R�W�W�^�^�D�1�2�+�
*�
*�
*�s�DD:�:E	�E	rr<)rMrNrOrPrQr\rfrmrprwr{r�rRrSrTs@rrWrWas1����,�/�;� >�	A�6�:�3�3rrWc�`�\sQs]�snQs\Q2s\Q2sQ#QksQs	\
O\OOQ2Q2Q2s\
O\OOQ2%(Q	2Q
2sQsQsQ
sQsQsQsQsQsQsQsQsQsQsQsQsQs Qs!Qs"Qs#Qs$Qs%Q s&Q!s'Q"s(Us)P!)$�IdleConfTestzTest for idleConfc	�j�-Um[OP	Q5o[Q6wc%[O
O
[2oL4[O
O[O
]*2oUOFDco[O
OUQU*2o[U29^tt^2oUO2UOU$PPP2Je	[OUm[!2[mP!)%fhJ�9h)T��_utest�__main__z../config-%s.def)�
config_stringr�IdleConfrMr�r[�dirname�__file__�abspath�sys�config_typesr��open�read�_warn�	orig_warnr)�cls�conf�idle_dir�ctyperJ�fs&     r�
setUpClass�IdleConfTest.setUpClass�s���������d�+���z�!��w�w���x�0�H��w�w���s�x�x��{�3�H��&�&�E��'�'�,�,�x�1C�e�1K�L�K��k�"�"�a�+,�6�6�8��!�!�%�(�#�"�'�
����
��v���	#�"�"�s�
D!	�!D2
�*D2
c�2�UO[mP!rY)r�rr�)r�s&r�
tearDownClass�IdleConfTest.tearDownClass�s
���}�}��rc�2�[OUQ5!)r�)rr�)r0r�s&&r�
new_config�IdleConfTest.new_config�s�����f�-�-rc��[OP	Q5oUOFD�o[OP2UOU$UOU*OUOU*2[OP2UOU$UOU*OUOU*2J�	U!)zRReturn a mocked idleConf

Both default and user config used the same config-*.def
r�)	rr�r�r*�
defaultCfgr+r�rZr
)r0r�r�s&  r�mock_config�IdleConfTest.mock_config�s���
���d�+���&�&�E�%+�%:�%:�2�%>�D�O�O�E�"��O�O�E�"�.�.�t�/A�/A�%�/H�I�"(�";�";�B�"?�D�L�L����L�L���+�+�D�,>�,>�u�,E�F�	'��r�winzthis is test for unix systemc��UOP	Q5o[OQQQ59^tt^2[OQP	Q59^tt^2UOUO	2Q2PPP2PPP2[OQQQ59^tt^2[OQQ	Q59^tt^2[OQ
29^tt^2UOUO	2Q2PPP2PPP2PPP2[OQQ
Q59^tt^2UO[29^tt^2UO[29^tt^2UO	2PPP2PPP2PPP2P!)%fhCK99h)%fhCKE9h)%fhK�9h)%fhK�9h)%fhK�9h)%fhK�9h)%fhK�9h)%fhP!9h)Tr��os.path.expanduser�	/home/foo��return_value�os.path.existsz/home/foo/.idlerc�~�	os.getcwdz/home/foo/cpython�os.mkdirz/home/foo/cpython/.idlerc�os.path.join�/path/not/exists�r�r�patchr,�
GetUserCfgDir�assertRaises�
SystemExit�FileNotFoundError�r0r�s& r�test_get_user_cfg_dir_unix�'IdleConfTest.test_get_user_cfg_dir_unix�so�����d��+���Z�Z�,�;�
G�
G����,�4�@�@�� � ��!3�!3�!5�7J�K�A�H�
�Z�Z�,�3�
?�
?����K�6I�J�J��Z�Z�
�+�+��$�$�T�%7�%7�%9�%@�B�,�K�@��Z�Z��5G�
H�
H��"�"�:�.�.��&�&�'8�9�9��&�&�(�:�/�I�
H�A�@�@��H�
G�
G��,�+��K�J��@�
?��:�9��/�.��I�
H�
H����!F:�!F&	�6F:�&!G4�G!	�&!G
�G!	�G4�?H-�H	�;H
�H	�H-�&F7
�/F7
�1	F:�:G	�G	�G�G�G!	�!G1
�*G1
�,G4�4H	�=H	�H�H�H	�H*
�#H*
�%H-�-H>	�6H>	zthis is test for Windows systemc��UOP	Q5o[OQQQ59^tt^2[OQP	Q59^tt^2UOUO	2Q2PPP2PPP2[OQQQ59^tt^2[OQQ	Q59^tt^2[OQ
29^tt^2UOUO	2Q2PPP2PPP2PPP2[OQQ
Q59^tt^2UO[29^tt^2UO[29^tt^2UO	2PPP2PPP2PPP2P!)%fhCK99h)%fhCKE9h)%fhK�9h)%fhK�9h)%fhK�9h)%fhK�9h)%fhK�9h)%fhP!9h)Tr�r�zC:\foor�r�zC:\foo\.idlercr�r�zC:\foo\cpythonr�zC:\foo\cpython\.idlercr�r�r�r�s& r�test_get_user_cfg_dir_windows�*IdleConfTest.test_get_user_cfg_dir_windows�so�����d��+���Z�Z�,�9�
E�
E����,�4�@�@�� � ��!3�!3�!5�7I�J�A�F�
�Z�Z�,�3�
?�
?����K�6H�I�I��Z�Z�
�+�+��$�$�T�%7�%7�%9�%@�B�,�J�@��Z�Z��5G�
H�
H��"�"�:�.�.��&�&�'8�9�9��&�&�(�:�/�I�
H�A�@�@��F�
E�
E��,�+��J�I��@�
?��:�9��/�.��I�
H�
H�r�c��UOP	Q5oQo[OOQQ-29^tt^2[OQUQ59^tt^2UO	2PPP2PPP2UOUOUO2UOUOUO2UOO2FD#oUOU[O2J%	UOO2FD#oUOU[O2J%	UOO2FDCvqVUOUO ["O$O'UQUQ022JE	UOO2FDWvqVSOUO ["O$O'UO(9%fQ	QUQ
022JY	P!)%fhCK�9h)%fhCK�9h)Tr�r�rM�__foo__zos.path.dirnamer�zconfig-z.def�#z.cfg)r�rr��dict�CreateConfigHandlersr7r�r�r
�values�assertIsInstancerr*rZ�itemsr,�filer�r[r��userdir)r0r�r��default_parser�user_parser�cfg_typer1s&      r�test_create_config_handlers�(IdleConfTest.test_create_config_handlerss������d��+����
�Z�Z�_�_�j�)�4�
5�
5����-�H�E�E��)�)�+�F�6�
	
���d�o�o�t�/@�/@�A����d�l�l�D�,=�,=�>�#�o�o�4�4�6�N��!�!�.�&�2G�2G�H�7��<�<�.�.�0�K��!�!�+�v�/H�/H�I�1�!%��� 5� 5� 7��H����V�[�[��W�W�\�\�(�g�h�Z�t�4L�M�
O�!8�!%��� 2� 2� 4��H����V�[�[��W�W�\�\�$�,�,�*=�*=�#���
�RV�?W�X�
Z�!5�#F�E�E��6�
5�
5�s/�!H?� H+	�1H?�+H<
�4H<
�6	H?�?I	�I	c�Z�UOP	Q5o[QQQ5o[OU2UOQ$[O
U2UOQ$UO2UOoUUOQ*OQQ2Q2UUOQ*OQ2Q,2UUOQ*OQQ2Q2UUOQ*OQ2Q,2P!)Tr�rCrDrErHrGrI)r�rrr*r�rZr
�LoadCfgFilesr,r.r6)r0r�rJr2s&   r�test_load_cfg_files� IdleConfTest.test_load_cfg_files&s������d��+���}�\�B��!'�!6�!6�{�!C������$�7�7��D����U��	
����
�
�
��	�4�?�?�5�!�%�%�i��7��B�
�4�?�?�5�!�/�/�	�:�U�G�D�	�4�<�<���"�"�9�e�4�h�?�
�4�<�<���,�,�Y�7�%��Arc��UO2o[OQ29^tt^2oUO2UO	UO
[
UO22PPP2P!)%fhP!9h)z&idlelib.config.IdleUserConfParser.Save)r�rr��SaveUserCfgFilesr,�
call_count�lenr
)r0r��ms&  r�test_save_user_cfg_files�%IdleConfTest.test_save_user_cfg_files;s[�����!��
�Z�Z�@�
A�
A�Q��!�!�#����Q�\�\�3�t�|�|�+<�=�B�
A�
A�
A�s�AA:�:B	�B	c���UO2oUOoUUOQQQ2Q2UUOQQQQQ5]P2[OQ29^tt^2oUUOQQQQQ5P2UUOQQQ2P2UUOQQQQ	Q
5Q	2UUO
]2PPP2P!)%fhP!9h)r�EditorWindow�width�80r"r�idlelib.config._warn�font�	NotExists�NEr()r�r,�	GetOptionrr�r�)r0r�r2r�s&   r�test_get_option�IdleConfTest.test_get_optionBs������!��
�
�
��
�4�>�>�&�.�'�:�D�A�
�4�>�>�&�.�'��>�F��K�
�Z�Z�.�
/�
/�5��t�~�~�f�n�f�5�~�I�4�P��t�~�~�f�n�k�B�D�I��t�~�~�f�n�k�4�~�P�RV�W��u����#�	0�
/�
/�
/�s�2A&C"�"C3	�+C3	c��UO2oUOQQQQ2UOUOQQQ2Q2P!)rr_r`rI)r�rdr,r�r�s& rrf�IdleConfTest.test_set_optionNs?�����!�����v�u�e�X�6���������u�=�x�Hrc��UO2oUOUOQQ2,QN2UOUOQQ2,QN2UO[O
29^tt^2UOQQ2PPP2UO[O29^tt^2UOQQ2PPP2P!)%fhKT9h)%fhP!9h)r)r�user�foobar�	notexists)�Generalr��PyShell�Indent�Theme�Keys�History�	HelpFiles)r�r7�GetSectionListr�r�InvalidConfigSet�InvalidConfigTyper�s& r�test_get_section_list�"IdleConfTest.test_get_section_listTs������!��������	�6�2�
-�	.�	
��������/�
-�	.�
�
�
�v�6�6�
7�
7�����&�1�8�
�
�
�v�7�7�
8�
8����	�;�7�9�
8�8�
7��
8�
8�
8�s$�C �C3� C0	�)C0	�3D	�<D	c	��UO2oUOoUUOQQ2QQQQ-2UUOQQ2QQQQ-2UOQQ	Q
Q2UOQQ	QQ
2[O
Q29^tt^2UUOQ	Q2QQQQ
-2PPP2P!)%fhP!9h)�IDLE Classic�normal�
foregroundz#000000�
backgroundz#ffffff�cursor�blackr�Foobarznormal-foregroundz#747474znormal-backgroundz#171717r�)r�r,�GetHighlightrdrr��r0r�r2s&  r�test_get_highlight�IdleConfTest.test_get_highlightes������!��
�
�
��
�4���^�X�6��y�9E�y�9R�	S�	�4���^�X�6��w�9E�y�9R�	S�	
���{�H�.A�9�M����{�H�.A�9�M�
�Z�Z�.�
/�
/��t� � ��8�4�|�Y�7C�Y�7P�
Q�0�
/�
/�
/�s�C�C	�C	c�8�UO2oUOUOQQ2UOQQ22UO[O
29^tt^2UOQQ2PPP2P!)%fhP!9h)r)r�r��bad)r�r,�GetThemeDictr�r�InvalidThemer�s& r�test_get_theme_dict� IdleConfTest.test_get_theme_dictwsx�����!��	
������i��8����f�n�5�	7��
�
�v�2�2�
3�
3����e�^�4�4�
3�
3�
3�s�+B�B	�B	c���UO2oUOUO2UOQ22UOUO	2UOQ22P!)r�r�)r�r,�CurrentTheme�current_colors_and_keys�CurrentKeysr�s& r�test_get_current_theme_and_keys�,IdleConfTest.test_get_current_theme_and_keys�sX�����!������*�*�,�d�.J�.J�7�.S�T�����)�)�+�T�-I�-I�&�-Q�Rrc�j�UO2oUOUOQ2Q2P!)r�r�)r�r,rr�s& r�test_current_colors_and_keys�)IdleConfTest.test_current_colors_and_keys�s+�����!������5�5�g�>��Orc�d�[OoUOP	Q5oQ[mUOUO	2Q2Q[mUOUO	2Q2Q[mUOUO	2Q2U[mP!)Tr��win32�IDLE Classic Windows�darwin�IDLE Classic OSX�
some-linux�IDLE Modern Unix)r��platformr�r,�default_keys�r0�current_platformr�s&  r�test_default_keys�IdleConfTest.test_default_keys�s����<�<�����d��+���������*�*�,�.D�E��������*�*�,�.@�A�#�������*�*�,�.@�A�(��rc�h�[OQ2UOo[OoUUP	Q5,2UU2Q,2UUP	Q5Q,2UUP
Q5QQ,2UUP
P	Q5QQ,2[OQ2[OQ2P!)zn
            [ZzDummy]
            enable = True
            [DISABLE]
            enable = False
            )�
shell_only�ZzDummy)�editor_only)�active_only�DISABLE)r&r%)�userextnr+r,r�
GetExtensionsr�)r0r2�iGEs&  r�test_get_extensions� IdleConfTest.test_get_extensions�s�������	��
�
���$�$��
�3�$���$�
�3�5�9�+��
�3�4� �9�+�.�
�3�5�!�I�y�#9�:�
�3�5�d�3�i��5K�L����	�*����	�*rc��UO2oUOUOUOQQ22,QN2P!)r)r	)�AutoComplete�CodeContext�FormatParagraph�
ParenMatchr$)r�r7�RemoveKeyBindNamesr�r�s& r�test_remove_key_bind_names�'IdleConfTest.test_remove_key_bind_names�s=�����!������#�#�D�$7�$7�	�<�$P�Q�W�	Yrc���[OQ2UOoU[O	Q2Q2U[O	Q2P2[OQ2P!)�=
            [ZzDummy]
            enable = True
            zz-inr$zz-out)r(r+r,r�GetExtnNameForEventr�)r0r2s& r�test_get_extn_name_for_event�)IdleConfTest.test_get_extn_name_for_event�sZ������	��
�
��
�8�'�'��/��;�
�8�'�'��0�$�7����	�*rc��[OQ2UO[O	Q2QQ,-2[OQ2P!)r6r$�<<z-in>>�!<Control-Shift-KeyRelease-Insert>)r(r+r,r�GetExtensionKeysr��r0s&r�test_get_extension_keys�$IdleConfTest.test_get_extension_keys�sM������	�	
����2�2�9�=��<�=�>�	@����	�*rc���[OQ2UOo[OoUUQ2-2QQ,QQ,-oUUQ2U2[OQ2P!)r6r�r;r<z	<<z-out>>z!<Control-Shift-KeyRelease-Delete>r$)r(r+r,r�GetExtensionBindingsr�)r0r2�iGEB�expects&   r�test_get_extension_bindings�(IdleConfTest.test_get_extension_bindings�sr������	��
�
���,�,��
�4���b�!��B�C�� C�D�F��
�4�	�?�F�#����	�*rc��UO2oUOoUUOQQ2QQ,2UUOQQ2QQ,2UUOQQ2QQ	,2UUOQ
Q2Q,2UUOQQ2Q,2UUOQ
Q2,2UUOQQ
2,2P!)r�<<copy>>z<Control-Shift-Key-C>z<Control-Key-Insert>�IDLE Classic Unixz<Alt-Key-w>z<Meta-Key-w>rz<Control-Key-c>z<Control-Key-C>zIDLE Classic Mac�<Command-Key-c>rz
NOT EXISTS)r�r,�
GetKeyBindingrs&  r�test_get_keybinding� IdleConfTest.test_get_keybinding�s������!��
�
�
��
�4���0�*�=�
$�&<�=�	?�
�4���1�:�>�
�N�+�	-�
�4���4�j�A�
� 1�2�	4�
�4���0�*�=�@Q�?R�S�
�4���0�*�=�@Q�?R�S�	�4���l�J�7��<�
�4���0�,�?��Drc���[OoUO2oQ[mUOUO	2UOUO
222U[mP!)r)r�rr�r,�GetCurrentKeySet�	GetKeySetrrs&  r�test_get_current_keyset�$IdleConfTest.test_get_current_keyset�sW���<�<�����!��$�������.�.�0�$�.�.��AQ�AQ�AS�2T�U�(��rc��UO2oUOQ*OQ2UOQ*OQ2UOQ*OQQQ2UOQ*OQQQ2UO	UOQ2Q*P2P!)	r	r�Foobar_cfgBindings�enable�True�newfooz<Key-F3>rz
<<newfoo>>)r�r�rb�setr,rPr�s& r�test_get_keyset�IdleConfTest.test_get_keyset�s������!��	
����%�1�1�(�;�����%�1�1�2F�G�����%�)�)�(�H�f�E�����%�)�)�*>��*�U�������(:�;�L�I�2�Nrc�(�UO2oUOUOQ22UOUOQ22UOUOQ22UOUOQ22P!)�copy�cutzdel-word-rightz
not-exists)r�rc�
IsCoreBindingrer�s& r�test_is_core_binding�!IdleConfTest.test_is_core_bindingso�����!������*�*�6�2�3�����*�*�5�1�2�����*�*�+;�<�=�����+�+�L�9�:rc���UO2oUOUOQ2,2UOUOQ2,2UO[O
29^tt^2UOUOQ2,2PPP2UO
UO2UOQ2UOQ2*2UOQ*OQQQ2UOQ*OQQQ2UOQ*OQQ	Q
2UOQ*OQQQ2UOUOQ2,Q
N2UO
UO2UOQ2UOQ2*2P!)%fhCKP9h)r)r�rrr��4zPython;https://python.org�3zPython:https://python.org�2z/Pillow;https://pillow.readthedocs.io/en/latest/�1z/IDLE;C:/Programs/Python36/Lib/idlelib/help.html))�IDLEz*C:/Programs/Python36/Lib/idlelib/help.htmlre)�Pillowz(https://pillow.readthedocs.io/en/latest/rd)�Pythonzhttps://python.orgrb)
r�r,�GetExtraHelpSourceListr�rr�r7�GetAllExtraHelpSourcesListr
rdr�s& r�test_extra_help_source_list�(IdleConfTest.test_extra_help_source_lists������!��	
����4�4�Y�?��D�����4�4�V�<�b�A�
�
�
�v�6�6�
7�
7����T�8�8��?��D�8�����+�+�-��'�'�	�2�T�5P�5P�QW�5X�X�	Z�
	
���V��&�&�{�C�9T�U����V��&�&�{�C�9T�U����V��&�&�{�C�9j�k����V��&�&�{�C�9j�k�����4�4�V�<�A�	B�	
����+�+�-��'�'�	�2�T�5P�5P�QW�5X�X�	Z�8�
7�
7�s�;"G$�$G5	�-G5	c�v�]QHGo]QH
Go]QHGoUO
2oUQ2U2oUO2UOUQP	UQ52oSOUOUQQ2UQ	*UQ
*]6:c]
LUQ
*UQ*12UO2=P!)�)�requires)�Tk)�Font�gui�TkFixedFont)rtr��rootrr��family�size�weight)�test.supportro�tkinterrp�tkinter.fontrqr��withdraw�actualr,�GetFont�destroy)r0rorprqr�rtr�s&      r�
test_get_font�IdleConfTest.test_get_font*s���)��%����!������t���
�
���K�K��-��4�H�I������L�L��v�~�6�
�x�[��&�	�Q��"�A�f�I�q��{�K�	M�
	
����rc��UO2oUOoUUO2Q*Q,2UUO2Q*QQ,2UUO2Q*Q,2UUOQ2Q*QQ	,2UUOQ
2Q*Q,2UUOQ2Q*Q
Q,2UUOQ2Q*Q
Q,2P!)z<<center-insert>>z<Control-l>rHz<Control-c>z<Control-C>z<<history-next>>z<Alt-n>rz<Control-Key-l>z<Control-Key-L>rrJrIz<Alt-Key-n>z<Meta-Key-n>r)r�r,�GetCoreKeysrs&  r�test_get_core_keys�IdleConfTest.test_get_core_keys=s������!��
�
�
��
�4����1�2�]�O�D�
�4����j�)�M�=�+I�J�
�4����0�1�I�;�?�
�4���2�3�4G�H��0�1�	3�
�4���.�/�
�;�>O�=P�Q�
�4���/�0�1C�D��>�*�	,�
�4���.�/�0B�C�
�N�+�	-rrr)*rMrNrOrPrQ�classmethodr�r�r�r��unittest�skipIfr�r�
startswithr�r�r�r�r�r�rfr�rr
rrr r+r3r8r?rErLrQrYr_rkrr�rRrSrTs@rr�r��s��������� �%��%�.���_�_�S�\�\�,�,�U�3�5S�T�)�U�)�,�_�_����0�0��7�7�9Z�[�)�\�)�,Z�6B�*>�
$�I�8�"Q�$
5�S�P�
(� +�$Y�+�+�+�E�"(�"O�;�Z�6�&
-�
-rr�c�`�\sQsQsnQs\OsQs\O2s	Qs
QsQsQs
QsQ	sQ
sUsP!)�CurrentColorKeysTest�Mz�Test colorkeys function with user config [Theme] and [Keys] patterns.

colorkeys = config.IdleConf.current_colors_and_keys
Test all patterns written by IDLE and some errors
Item 'default' should really be 'builtin' (versus 'custom).
r�c���UOUOQ2UO2[O	Q2UOUOQ2UO2Q[Q*Q$UOUOQ2Q2Q[Q*Q$UOUOQ2UO2[OQ2P!)r�z<
            [Theme]
            default = True
            �IDLE Newrt�non-existent)r,�	colorkeys�
default_theme�usermainr+r�r>s&r�test_old_builtin_theme�+CurrentColorKeysTest.test_old_builtin_themeXs����������0�$�2D�2D�E�����	�
	
�������0�$�2D�2D�E�$.����&�!��������0�*�=�$2����&�!��������0�$�2D�2D�E�����(rc�v�[OQ2UOUOQ2Q2Q[Q*Q$UOUOQ2Q2Q[Q*Q$UOUOQ2UO2[OQ2P!)zZ
            [Theme]
            default = True
            name2 = IDLE Dark
            r�z	IDLE Darkr�rtr��name2)r�r+r,r�r�r�r>s&r�test_new_builtin_theme�+CurrentColorKeysTest.test_new_builtin_themejs�������	�
	
�������0�+�>�$.����&�!��������0�+�>�%3����'�"��������0�$�2D�2D�E�����(rc��[OQ2UOUOQ2UO2[
OQ2UOUOQ2Q2Q[Q*Q$UOUOQ2Q2[O
Q2[
O
Q2P!)z\
            [Theme]
            default = False
            name = Custom Dark
            r�z[Custom Dark]
a=bzCustom Darkr�r�)r�r+r,r�r��userhighr�r>s&r�test_user_override_theme�-CurrentColorKeysTest.test_user_override_themezs�������	�
	
�������0�$�2D�2D�E����1�2��������0�-�@�%3����'�"��������0�-�@�����(����
�.rc�j�UOUOQ2UO2[O	Q2UOUOQ2Q2Q[Q*Q$UOUOQ2UO2[OQ2P!)r�z`
            [Keys]
            default = True
            name = IDLE Classic Unix
            rIr�rt)r,r�rr�r+r�r>s&r�test_old_builtin_keys�*CurrentColorKeysTest.test_old_builtin_keys�s����������/��1B�1B�C�����	�
	
�������/�1D�E�#1����� ��������/��1B�1B�C�����'rc�v�[OQ2UOUOQ2Q2Q[Q*Q$UOUOQ2Q2Q[Q*Q$UOUOQ2UO2[OQ2P!)z`
            [Keys]
            default = True
            name2 = IDLE Modern Unix
            r�rrIrtr�r�)r�r+r,r�rr�r>s&r�test_new_builtin_keys�*CurrentColorKeysTest.test_new_builtin_keys�s�������	�
	
�������/�1C�D�#6����� ��������/�1C�D�$2�����!��������/��1B�1B�C�����'rc��[OQ2UOUOQ2UO2[
OQ2UOUOQ2Q2Q[Q*Q$UOUOQ2Q2[O
Q2[
O
Q2P!)z[
            [Keys]
            default = False
            name = Custom Keys
            r�z[Custom Keys]
a=bzCustom Keysr�r�)r�r+r,r�r�userkeysr�r>s&r�test_user_override_keys�,CurrentColorKeysTest.test_user_override_keys�s�������	�
	
�������/��1B�1B�C����1�2��������/��?�$2�����!��������/��?�����'����
�.rr)rMrNrOrPrQrrr�r�rr�r�r�r�r�r�rRrSrTs@rr�r�MsM������0�0�I�"�M��(�(�*�L�)�$)� /�"
(�(� /�/rr�c�`�\sQsQsnQ-Q-Q-Q--sQsQQQQ	--QQ
QQ--QQ
QQ--Q--sQsQsQs	Qs
QsQsQs
QsQsQsUsP!)�ChangesTest�rrrr	c��UOoUOQQQQ2UOQQQQ2UOQQ	Q
Q2U!)r�Msec�mitem�mvalr�Hsec�hitem�hvalr�Ksec�kitem�kval��changes�
add_option�r0r�s& r�load�ChangesTest.load�sL���,�,�����6�6�7�F�;����;����@����6�6�7�F�;��rr�r�r�r�r�r�r�r�r�c�<�[O2UmP!rY)r�
ConfigChangesr�r>s&r�setUp�ChangesTest.setUp�s���+�+�-��rc�T�UOUOUO2P!rY)r,r��emptyr>s&r�	test_init�ChangesTest.test_init�s��������t�z�z�2rc��UO2oUOVO2UOQQQQ2UOVO2P!)rr�r�r�)r�r,�loadedr�r�s& r�test_add_option�ChangesTest.test_add_option�sE���)�)�+������+�+�.����6�6�7�F�;�����+�+�.rc��UOOoUOUQQQQ22UOUQQQQ22UO	[
Q*Q*Q2UOUQQQQ22UO	[
Q*Q*Q2UOUQQQQ22UO[
O
QQ22[
OQ2P!)rr��what�0�
use-spacesre)r��save_optionrcrer,r��
has_optionr�)r0r�s& r�test_save_option�ChangesTest.test_save_option�s����l�l�.�.������F�H�f�c�B�C�����V�X�v�s�C�D�����(�+�F�3�S�9�����F�H�l�C�H�I�����(�+�L�9�3�?�����F�H�l�C�H�I�����,�,�X�|�D�E�����)rc�"�UO2oUOUO22UO[Q*Q*Q2UO[
Q*Q*Q2UO[Q*Q*Q2UOQ	QQQ2UOUO22[OQ2[
OQ2[OQ2P!)
r�r�r�r�r�r�r�r�r�r)
r�rc�save_allr,r�r�r�r�rer�r�s& r�test_save_added�ChangesTest.test_save_added�s����)�)�+������(�(�*�+�����&�)�'�2�F�;�����&�)�'�2�F�;�����&�)�'�2�F�;����6�6�7�F�;�����)�)�+�,�����'�����'�����'rc�$�UOoUOQQQQ2UOQQQQ2UO2UO	[
O
QQ22UO[
O
QQ22P!)rr�rf�idledoc�ELDI�codeldi)r�r�r�r�rer�r�rcr�s& r�test_save_help�ChangesTest.test_save_help�ss���,�,�����F�K���C����6�;��	�B���������,�,�[�&�A�B�����+�+�K��@�Arc�H�UOoUOQQQQ2P!)rr�r�rer�r�s& r�test_save_default�ChangesTest.test_save_default�s���,�,�����6�8�\�3�?rc	��UO2oUOQQ2UOVO2QFD}vq#[U*OUQQ2UOV#2UO
[29^tt^2V*U*[U*U*PPP2J	P!)%fhJ�9h)r�fakert�value))rr�)rr�)r��delete_sectionr,r�rrdr��KeyError)r0r��cfgtype�sections&   r�test_delete_section�ChangesTest.test_delete_sections����)�)�+�����v�v�.�����+�+�.� D��G��G��&�&�w���@��"�"�7�4��"�"�8�,�,�� ��)��� ��)�-�,�!E�-�,�,�s�$C	�C
�C
c�~�UO2oUO2UOVO2P!rY)r��clearr,r�r�s& r�
test_clear�ChangesTest.test_clears(���)�)�+���
�
������*�*�-r)r�)rMrNrOrPr�r�r�r�r�r�r�r�r�r�r�r�rRrSrTs@rr�r��s�����
�B��B��r�<��C�E���v���0�1��F�W�f�$5�6��v���/�0��B� �F�
.�3�/�
*�
(�B�@�	*�.�.rr�c�(`�\sQsQsnQsQsUsP!)�WarningTest�c���UOo[2[m[	29^tt^2o[O
QQ2PPP2U[OQ.2UWO
2Q2[	29^tt^2o[O
QQ2PPP2UUO
2P2[	29^tt^2o[O
QQ2PPP2U[OQQ.2UUO
2Q2P!)%fhK�9h)%fhK�9h)%fhKh9h)�warning�key�warn2�yek)r�r�zwarning
)r�r�zwarn2
)r,rXr�_warnedrr��getvalue)r0�Equal�stderrs&  r�	test_warn�WarningTest.test_warns���� � ������
�
�
�&��L�L��E�*��
�f�n�n�0�1�2�
�f�o�o���0�
�
�
�&��L�L��E�*��
�f�o�o���$�
�
�
�&��L�L��%�(��
�f�n�n�0�/�B�C�
�f�o�o���.��
���
���
�s5�D/�E�E�/D?	�8D?	�E	�E	�E%	�E%	r)rMrNrOrPr�rRrSrTs@rr�r�s����
/�
/rr�r�)�	verbosity)!rQrrr�r�r~rxrrr�r�idlelib.idle_test.mock_idlerrr
rrrZr�r�r�r(rr�TestCaserrWr�r�r�r�rMrrrr�<module>r�sH���
�
�	��2����,��?�?��
�
�
��
��#�6�6�r�:�:��7�6�?�"(�";�";�B�"?�?��7�;��#�6�6�r�:�:��7�6�?�#)�#<�#<�R�#@�@��7�<� ���
8C��*�*�8C�vP3�X�.�.�P3�fV-�8�$�$�V-�rl/�8�,�,�l/�^S.�(�#�#�S.�l/�(�#�#�/�$�z���M�M�A��r

Youez - 2016 - github.com/yon3zu
LinuXploit