PATH:
opt
/
bitninja-python-dojo
/
embedded
/
lib
/
python3.9
/
idlelib
/
idle_test
"Test debugobj, coverage 40%." from idlelib import debugobj import unittest class ObjectTreeItemTest(unittest.TestCase): def test_init(self): ti = debugobj.ObjectTreeItem('label', 22) self.assertEqual(ti.labeltext, 'label') self.assertEqual(ti.object, 22) self.assertEqual(ti.setfunction, None) class ClassTreeItemTest(unittest.TestCase): def test_isexpandable(self): ti = debugobj.ClassTreeItem('label', 0) self.assertTrue(ti.IsExpandable()) class AtomicObjectTreeItemTest(unittest.TestCase): def test_isexpandable(self): ti = debugobj.AtomicObjectTreeItem('label', 0) self.assertFalse(ti.IsExpandable()) class SequenceTreeItemTest(unittest.TestCase): def test_isexpandable(self): ti = debugobj.SequenceTreeItem('label', ()) self.assertFalse(ti.IsExpandable()) ti = debugobj.SequenceTreeItem('label', (1,)) self.assertTrue(ti.IsExpandable()) def test_keys(self): ti = debugobj.SequenceTreeItem('label', 'abc') self.assertEqual(list(ti.keys()), [0, 1, 2]) class DictTreeItemTest(unittest.TestCase): def test_isexpandable(self): ti = debugobj.DictTreeItem('label', {}) self.assertFalse(ti.IsExpandable()) ti = debugobj.DictTreeItem('label', {1:1}) self.assertTrue(ti.IsExpandable()) def test_keys(self): ti = debugobj.DictTreeItem('label', {1:1, 0:0, 2:2}) self.assertEqual(ti.keys(), [0, 1, 2]) if __name__ == '__main__': unittest.main(verbosity=2)
[-] test_run.py
[edit]
[-] test_configdialog.py
[edit]
[-] test_help.py
[edit]
[-] test_macosx.py
[edit]
[-] test_searchbase.py
[edit]
[-] test_pathbrowser.py
[edit]
[-] test_outwin.py
[edit]
[-] test_delegator.py
[edit]
[-] test_redirector.py
[edit]
[-] test_config_key.py
[edit]
[-] test_history.py
[edit]
[-] test_rpc.py
[edit]
[-] test_tooltip.py
[edit]
[-] test_textview.py
[edit]
[-] test_grep.py
[edit]
[+]
..
[-] test_colorizer.py
[edit]
[-] test_parenmatch.py
[edit]
[-] test_debugger_r.py
[edit]
[-] test_browser.py
[edit]
[-] test_autocomplete_w.py
[edit]
[-] test_codecontext.py
[edit]
[-] template.py
[edit]
[-] test_mainmenu.py
[edit]
[-] test_zoomheight.py
[edit]
[-] test_scrolledlist.py
[edit]
[-] mock_idle.py
[edit]
[-] README.txt
[edit]
[-] test_calltip_w.py
[edit]
[-] test_help_about.py
[edit]
[-] test_replace.py
[edit]
[-] test_hyperparser.py
[edit]
[-] test_sidebar.py
[edit]
[-] test_window.py
[edit]
[-] test_debugobj.py
[edit]
[-] test_squeezer.py
[edit]
[-] test_editmenu.py
[edit]
[-] test_runscript.py
[edit]
[-] test_iomenu.py
[edit]
[+]
__pycache__
[-] mock_tk.py
[edit]
[-] test_format.py
[edit]
[-] test_searchengine.py
[edit]
[-] test_text.py
[edit]
[-] test_autocomplete.py
[edit]
[-] test_multicall.py
[edit]
[-] test_warning.py
[edit]
[-] test_debugobj_r.py
[edit]
[-] test_debugger.py
[edit]
[-] test_query.py
[edit]
[-] test_zzdummy.py
[edit]
[-] __init__.py
[edit]
[-] test_percolator.py
[edit]
[-] htest.py
[edit]
[-] test_filelist.py
[edit]
[-] test_pyparse.py
[edit]
[-] test_stackviewer.py
[edit]
[-] test_autoexpand.py
[edit]
[-] test_undo.py
[edit]
[-] test_search.py
[edit]
[-] test_tree.py
[edit]
[-] test_editor.py
[edit]
[-] test_calltip.py
[edit]
[-] test_pyshell.py
[edit]
[-] test_config.py
[edit]
[-] test_statusbar.py
[edit]