PATH: //opt/alt/python27/lib64/python2.7/idlelib/idle_test
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 README.txt
↓
X
📄 __init__.py
↓
X
📄 __init__.pyc
↓
X
📄 __init__.pyo
↓
X
📄 htest.py
↓
X
📄 htest.pyc
↓
X
📄 htest.pyo
↓
X
📄 mock_idle.py
↓
X
📄 mock_idle.pyc
↓
X
📄 mock_idle.pyo
↓
X
📄 mock_tk.py
↓
X
📄 mock_tk.pyc
↓
X
📄 mock_tk.pyo
↓
X
📄 test_autocomplete.py
↓
X
📄 test_autocomplete.pyc
↓
X
📄 test_autocomplete.pyo
↓
X
📄 test_autoexpand.py
↓
X
📄 test_autoexpand.pyc
↓
X
📄 test_autoexpand.pyo
↓
X
📄 test_calltips.py
↓
X
📄 test_calltips.pyc
↓
X
📄 test_calltips.pyo
↓
X
📄 test_config_name.py
↓
X
📄 test_config_name.pyc
↓
X
📄 test_config_name.pyo
↓
X
📄 test_configdialog.py
↓
X
📄 test_configdialog.pyc
↓
X
📄 test_configdialog.pyo
↓
X
📄 test_delegator.py
↓
X
📄 test_delegator.pyc
↓
X
📄 test_delegator.pyo
↓
X
📄 test_editmenu.py
↓
X
📄 test_editmenu.pyc
↓
X
📄 test_editmenu.pyo
↓
X
📄 test_formatparagraph.py
↓
X
📄 test_formatparagraph.pyc
↓
X
📄 test_formatparagraph.pyo
↓
X
📄 test_grep.py
↓
X
📄 test_grep.pyc
↓
X
📄 test_grep.pyo
↓
X
📄 test_helpabout.py
↓
X
📄 test_helpabout.pyc
↓
X
📄 test_helpabout.pyo
↓
X
📄 test_hyperparser.py
↓
X
📄 test_hyperparser.pyc
↓
X
📄 test_hyperparser.pyo
↓
X
📄 test_idlehistory.py
↓
X
📄 test_idlehistory.pyc
↓
X
📄 test_idlehistory.pyo
↓
X
📄 test_io.py
↓
X
📄 test_io.pyc
↓
X
📄 test_io.pyo
↓
X
📄 test_parenmatch.py
↓
X
📄 test_parenmatch.pyc
↓
X
📄 test_parenmatch.pyo
↓
X
📄 test_pathbrowser.py
↓
X
📄 test_pathbrowser.pyc
↓
X
📄 test_pathbrowser.pyo
↓
X
📄 test_rstrip.py
↓
X
📄 test_rstrip.pyc
↓
X
📄 test_rstrip.pyo
↓
X
📄 test_searchdialogbase.py
↓
X
📄 test_searchdialogbase.pyc
↓
X
📄 test_searchdialogbase.pyo
↓
X
📄 test_searchengine.py
↓
X
📄 test_searchengine.pyc
↓
X
📄 test_searchengine.pyo
↓
X
📄 test_text.py
↓
X
📄 test_text.pyc
↓
X
📄 test_text.pyo
↓
X
📄 test_textview.py
↓
X
📄 test_textview.pyc
↓
X
📄 test_textview.pyo
↓
X
📄 test_warning.py
↓
X
📄 test_warning.pyc
↓
X
📄 test_warning.pyo
↓
X
📄 test_widgetredir.py
↓
X
📄 test_widgetredir.pyc
↓
X
📄 test_widgetredir.pyo
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: test_helpabout.py
'''Test idlelib.help_about. Coverage: ''' from idlelib import aboutDialog as help_about from idlelib import textView as textview from idlelib.idle_test.mock_idle import Func from idlelib.idle_test.mock_tk import Mbox import unittest About = help_about.AboutDialog class Dummy_about_dialog(): # Dummy class for testing file display functions. idle_credits = About.ShowIDLECredits.im_func idle_readme = About.ShowIDLEAbout.im_func idle_news = About.ShowIDLENEWS.im_func # Called by the above display_file_text = About.display_file_text.im_func class DisplayFileTest(unittest.TestCase): "Test that .txt files are found and properly decoded." dialog = Dummy_about_dialog() @classmethod def setUpClass(cls): cls.orig_mbox = textview.tkMessageBox cls.orig_view = textview.view_text cls.mbox = Mbox() cls.view = Func() textview.tkMessageBox = cls.mbox textview.view_text = cls.view cls.About = Dummy_about_dialog() @classmethod def tearDownClass(cls): textview.tkMessageBox = cls.orig_mbox textview.view_text = cls.orig_view.im_func def test_file_isplay(self): for handler in (self.dialog.idle_credits, self.dialog.idle_readme, self.dialog.idle_news): self.mbox.showerror.message = '' self.view.called = False handler() self.assertEqual(self.mbox.showerror.message, '') self.assertEqual(self.view.called, True) if __name__ == '__main__': unittest.main(verbosity=2)
SIMPAN PERUBAHAN