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 open_path_browser(self, event=None): from idlelib import PathBrowser PathBrowser.PathBrowser(self.flist)
def test_DirBrowserTreeItem(self): d = PathBrowser.DirBrowserTreeItem('') d.GetSubList()
def test_PathBrowserTreeItem(self): p = PathBrowser.PathBrowserTreeItem() self.assertEqual(p.GetText(), 'sys.path') sub = p.GetSubList() self.assertEqual(len(sub), len(sys.path))
def test_DirBrowserTreeItem(self): # Issue16226 - make sure that getting a sublist works d = PathBrowser.DirBrowserTreeItem('') d.GetSubList()