PATH: //proc/thread-self/root/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_pathbrowser.py
import unittest import os import sys import idlelib from idlelib import PathBrowser class PathBrowserTest(unittest.TestCase): def test_DirBrowserTreeItem(self): # Issue16226 - make sure that getting a sublist works d = PathBrowser.DirBrowserTreeItem('') d.GetSubList() self.assertEqual('', d.GetText()) dir = os.path.split(os.path.abspath(idlelib.__file__))[0] self.assertEqual(d.ispackagedir(dir), True) self.assertEqual(d.ispackagedir(dir + '/Icons'), False) def test_PathBrowserTreeItem(self): p = PathBrowser.PathBrowserTreeItem() self.assertEqual(p.GetText(), 'sys.path') sub = p.GetSubList() self.assertEqual(len(sub), len(sys.path)) # Following fails in 2.7 because old-style class #self.assertEqual(type(sub[0]), PathBrowser.DirBrowserTreeItem) if __name__ == '__main__': unittest.main(verbosity=2, exit=False)
SIMPAN PERUBAHAN