[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.118.26.113: ~ $


��Yf�
�@s�dZddlZddlmZmZmZddlmZej	Z
Gdd�d�ZejZ
ejZGdd�dej�Zed	kr�ejd
ddd
�dS)z*Unittests for idlelib.configHelpSourceEdit�N)�Var�Mbox�Entry)�configHelpSourceEditc@speZdZejZejZejZejZe�Z	e
�Ze�Ze
�Z
dZdZdd�ZdS)�Dummy_help_dialogNFcCs
d|_dS)NT)�	destroyed)�self�r	�G/opt/alt/python35/lib64/python3.5/idlelib/idle_test/test_config_help.py�destroyszDummy_help_dialog.destroy)�__name__�
__module__�__qualname__�help_dialog�menu_ok�path_ok�ok�cancelr�menurZ	entryMenu�pathZ	entryPath�resultrrr	r	r	r
r	s								rc@s�eZdZe�Zedd��Zedd��Zdd�Zdd�Z	d	d
�Z
dd�Zd
d�Zdd�Z
dd�Zdd�Zdd�ZdS)�ConfigHelpTestcCs
tt_dS)N)r�help_dialog_module�tkMessageBox)�clsr	r	r
�
setUpClass#szConfigHelpTest.setUpClasscCs
tt_dS)N)�	orig_mboxrr)rr	r	r
�
tearDownClass'szConfigHelpTest.tearDownClasscCsS|jjjd�|j|jj��|jtjd�|jdtj	�dS)N�zMenu Item Error�No)
�dialogr�set�assertFalser�assertEqual�	showerror�title�assertIn�message)rr	r	r
�test_blank_menu+szConfigHelpTest.test_blank_menucCsW|jjjdd�|j|jj��|jtjd�|jdtj	�dS)NZhello�
zMenu Item ErrorZlong)
r rr!r"rr#r$r%r&r')rr	r	r
�test_long_menu1szConfigHelpTest.test_long_menucCsI|jjjd�dt_|j|jj��|jtjd�dS)N�helpzNo Error)r rr!r$r%�
assertTruerr#)rr	r	r
�test_good_menu7s	zConfigHelpTest.test_good_menucCsS|jjjd�|j|jj��|jtjd�|jdtj	�dS)NrzFile Path Errorr)
r rr!r"rr#r$r%r&r')rr	r	r
�test_blank_path=szConfigHelpTest.test_blank_pathcCsW|jjjdd�|j|jj��|jtjd�|jdtj	�dS)NZfoobar�dzFile Path Errorz	not exist)
r rr!r"rr#r$r%r&r')rr	r	r
�test_invalid_file_pathCsz%ConfigHelpTest.test_invalid_file_pathcCs�|jjjd�|j|jj��|jtjd�|jdtj	�|jjjd�|j|jj��|jtjd�|jdtj	�dS)Nz
ww.foobar.comzFile Path Errorz	not existzhtt.foobar.com)
r rr!r"rr#r$r%r&r')rr	r	r
�test_invalid_url_pathIsz$ConfigHelpTest.test_invalid_url_pathcCsI|jjjd�dt_|j|jj��|jtjd�dS)Nzhttps://docs.python.orgzNo Error)r rr!r$r%r,rr#)rr	r	r
�test_good_pathTs	zConfigHelpTest.test_good_pathcCsld|j_|jjjd�|jjjd�|jj�|j|jjd�|j|jj�dS)NFr+�https://docs.python.org)r+r3)	r rrr!rrr#rr,)rr	r	r
�test_okZs
zConfigHelpTest.test_okcCsFd|j_|jj�|j|jjd�|j|jj�dS)NF)r rrr#rr,)rr	r	r
�test_cancelcs
zConfigHelpTest.test_cancelN)rr
rrr �classmethodrrr(r*r-r.r0r1r2r4r5r	r	r	r
r s		r�__main__�	verbosity��exitF)�__doc__ZunittestZidlelib.idle_test.mock_tkrrrZidlelibrrZGetHelpSourceDialogrrrrr$ZTestCaserr�mainr	r	r	r
�<module>s			I

Filemanager

Name Type Size Permission Actions
__init__.cpython-35.opt-1.pyc File 823 B 0644
__init__.cpython-35.opt-2.pyc File 496 B 0644
__init__.cpython-35.pyc File 823 B 0644
htest.cpython-35.opt-1.pyc File 11.44 KB 0644
htest.cpython-35.opt-2.pyc File 9.17 KB 0644
htest.cpython-35.pyc File 11.44 KB 0644
mock_idle.cpython-35.opt-1.pyc File 2.4 KB 0644
mock_idle.cpython-35.opt-2.pyc File 1.71 KB 0644
mock_idle.cpython-35.pyc File 2.4 KB 0644
mock_tk.cpython-35.opt-1.pyc File 11.12 KB 0644
mock_tk.cpython-35.opt-2.pyc File 6.29 KB 0644
mock_tk.cpython-35.pyc File 11.12 KB 0644
test_autocomplete.cpython-35.opt-1.pyc File 4.95 KB 0644
test_autocomplete.cpython-35.opt-2.pyc File 4.93 KB 0644
test_autocomplete.cpython-35.pyc File 4.95 KB 0644
test_autoexpand.cpython-35.opt-1.pyc File 4.13 KB 0644
test_autoexpand.cpython-35.opt-2.pyc File 4.06 KB 0644
test_autoexpand.cpython-35.pyc File 4.13 KB 0644
test_calltips.cpython-35.opt-1.pyc File 10.01 KB 0644
test_calltips.cpython-35.opt-2.pyc File 9.88 KB 0644
test_calltips.cpython-35.pyc File 10.09 KB 0644
test_config_help.cpython-35.opt-1.pyc File 4.31 KB 0644
test_config_help.cpython-35.opt-2.pyc File 4.23 KB 0644
test_config_help.cpython-35.pyc File 4.31 KB 0644
test_config_name.cpython-35.opt-1.pyc File 3.16 KB 0644
test_config_name.cpython-35.opt-2.pyc File 3.08 KB 0644
test_config_name.cpython-35.pyc File 3.16 KB 0644
test_configdialog.cpython-35.opt-1.pyc File 1.43 KB 0644
test_configdialog.cpython-35.opt-2.pyc File 1.27 KB 0644
test_configdialog.cpython-35.pyc File 1.43 KB 0644
test_delegator.cpython-35.opt-1.pyc File 1.1 KB 0644
test_delegator.cpython-35.opt-2.pyc File 1.09 KB 0644
test_delegator.cpython-35.pyc File 1.1 KB 0644
test_editmenu.cpython-35.opt-1.pyc File 2.88 KB 0644
test_editmenu.cpython-35.opt-2.pyc File 2.48 KB 0644
test_editmenu.cpython-35.pyc File 2.88 KB 0644
test_editor.cpython-35.opt-1.pyc File 1.19 KB 0644
test_editor.cpython-35.opt-2.pyc File 1.17 KB 0644
test_editor.cpython-35.pyc File 1.19 KB 0644
test_formatparagraph.cpython-35.opt-1.pyc File 12.41 KB 0644
test_formatparagraph.cpython-35.opt-2.pyc File 11.65 KB 0644
test_formatparagraph.cpython-35.pyc File 12.41 KB 0644
test_grep.cpython-35.opt-1.pyc File 3.08 KB 0644
test_grep.cpython-35.opt-2.pyc File 2.54 KB 0644
test_grep.cpython-35.pyc File 3.08 KB 0644
test_help_about.cpython-35.opt-1.pyc File 1.96 KB 0644
test_help_about.cpython-35.opt-2.pyc File 1.82 KB 0644
test_help_about.cpython-35.pyc File 1.96 KB 0644
test_hyperparser.cpython-35.opt-1.pyc File 8 KB 0644
test_hyperparser.cpython-35.opt-2.pyc File 7.81 KB 0644
test_hyperparser.cpython-35.pyc File 8 KB 0644
test_idlehistory.cpython-35.opt-1.pyc File 6.72 KB 0644
test_idlehistory.cpython-35.opt-2.pyc File 6.57 KB 0644
test_idlehistory.cpython-35.pyc File 6.72 KB 0644
test_io.cpython-35.opt-1.pyc File 8.76 KB 0644
test_io.cpython-35.opt-2.pyc File 8.75 KB 0644
test_io.cpython-35.pyc File 8.76 KB 0644
test_parenmatch.cpython-35.opt-1.pyc File 4.06 KB 0644
test_parenmatch.cpython-35.opt-2.pyc File 3.61 KB 0644
test_parenmatch.cpython-35.pyc File 4.06 KB 0644
test_pathbrowser.cpython-35.opt-1.pyc File 1.31 KB 0644
test_pathbrowser.cpython-35.opt-2.pyc File 1.29 KB 0644
test_pathbrowser.cpython-35.pyc File 1.31 KB 0644
test_percolator.cpython-35.opt-1.pyc File 5.18 KB 0644
test_percolator.cpython-35.opt-2.pyc File 5.13 KB 0644
test_percolator.cpython-35.pyc File 5.18 KB 0644
test_replacedialog.cpython-35.opt-1.pyc File 7.5 KB 0644
test_replacedialog.cpython-35.opt-2.pyc File 7.43 KB 0644
test_replacedialog.cpython-35.pyc File 7.5 KB 0644
test_rstrip.cpython-35.opt-1.pyc File 1.55 KB 0644
test_rstrip.cpython-35.opt-2.pyc File 1.54 KB 0644
test_rstrip.cpython-35.pyc File 1.55 KB 0644
test_searchdialog.cpython-35.opt-1.pyc File 2.42 KB 0644
test_searchdialog.cpython-35.opt-2.pyc File 2.34 KB 0644
test_searchdialog.cpython-35.pyc File 2.42 KB 0644
test_searchdialogbase.cpython-35.opt-1.pyc File 5.79 KB 0644
test_searchdialogbase.cpython-35.opt-2.pyc File 5.58 KB 0644
test_searchdialogbase.cpython-35.pyc File 5.79 KB 0644
test_searchengine.cpython-35.opt-1.pyc File 10.7 KB 0644
test_searchengine.cpython-35.opt-2.pyc File 10.61 KB 0644
test_searchengine.cpython-35.pyc File 10.7 KB 0644
test_text.cpython-35.opt-1.pyc File 6.86 KB 0644
test_text.cpython-35.opt-2.pyc File 6.84 KB 0644
test_text.cpython-35.pyc File 6.86 KB 0644
test_textview.cpython-35.opt-1.pyc File 3.86 KB 0644
test_textview.cpython-35.opt-2.pyc File 3.53 KB 0644
test_textview.cpython-35.pyc File 3.86 KB 0644
test_undodelegator.cpython-35.opt-1.pyc File 4.57 KB 0644
test_undodelegator.cpython-35.opt-2.pyc File 4.3 KB 0644
test_undodelegator.cpython-35.pyc File 4.57 KB 0644
test_warning.cpython-35.opt-1.pyc File 2.84 KB 0644
test_warning.cpython-35.opt-2.pyc File 2.5 KB 0644
test_warning.cpython-35.pyc File 2.84 KB 0644
test_widgetredir.cpython-35.opt-1.pyc File 5.49 KB 0644
test_widgetredir.cpython-35.opt-2.pyc File 5.4 KB 0644
test_widgetredir.cpython-35.pyc File 5.49 KB 0644