PATH: //proc/self/root/opt/alt/python34/lib64/python3.4/idlelib/idle_test
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 README.txt
↓
X
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 htest.py
↓
X
📄 mock_idle.py
↓
X
📄 mock_tk.py
↓
X
📄 test_autocomplete.py
↓
X
📄 test_autoexpand.py
↓
X
📄 test_calltips.py
↓
X
📄 test_config_name.py
↓
X
📄 test_configdialog.py
↓
X
📄 test_delegator.py
↓
X
📄 test_editor.py
↓
X
📄 test_formatparagraph.py
↓
X
📄 test_grep.py
↓
X
📄 test_hyperparser.py
↓
X
📄 test_idlehistory.py
↓
X
📄 test_io.py
↓
X
📄 test_parenmatch.py
↓
X
📄 test_pathbrowser.py
↓
X
📄 test_rstrip.py
↓
X
📄 test_searchdialogbase.py
↓
X
📄 test_searchengine.py
↓
X
📄 test_text.py
↓
X
📄 test_textview.py
↓
X
📄 test_warning.py
↓
X
📄 test_widgetredir.py
↓
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)) self.assertEqual(type(sub[0]), PathBrowser.DirBrowserTreeItem) if __name__ == '__main__': unittest.main(verbosity=2, exit=False)
SIMPAN PERUBAHAN