/opt/alt/python37/lib64/python3.7/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)
.
Edit
..
Edit
README.txt
Edit
__init__.py
Edit
__pycache__
Edit
htest.py
Edit
mock_idle.py
Edit
mock_tk.py
Edit
template.py
Edit
test_autocomplete.py
Edit
test_autocomplete_w.py
Edit
test_autoexpand.py
Edit
test_browser.py
Edit
test_calltip.py
Edit
test_calltip_w.py
Edit
test_codecontext.py
Edit
test_colorizer.py
Edit
test_config.py
Edit
test_config_key.py
Edit
test_configdialog.py
Edit
test_debugger.py
Edit
test_debugger_r.py
Edit
test_debugobj.py
Edit
test_debugobj_r.py
Edit
test_delegator.py
Edit
test_editmenu.py
Edit
test_editor.py
Edit
test_filelist.py
Edit
test_format.py
Edit
test_grep.py
Edit
test_help.py
Edit
test_help_about.py
Edit
test_history.py
Edit
test_hyperparser.py
Edit
test_iomenu.py
Edit
test_macosx.py
Edit
test_mainmenu.py
Edit
test_multicall.py
Edit
test_outwin.py
Edit
test_parenmatch.py
Edit
test_pathbrowser.py
Edit
test_percolator.py
Edit
test_pyparse.py
Edit
test_pyshell.py
Edit
test_query.py
Edit
test_redirector.py
Edit
test_replace.py
Edit
test_rpc.py
Edit
test_run.py
Edit
test_runscript.py
Edit
test_scrolledlist.py
Edit
test_search.py
Edit
test_searchbase.py
Edit
test_searchengine.py
Edit
test_sidebar.py
Edit
test_squeezer.py
Edit
test_stackviewer.py
Edit
test_statusbar.py
Edit
test_text.py
Edit
test_textview.py
Edit
test_tooltip.py
Edit
test_tree.py
Edit
test_undo.py
Edit
test_warning.py
Edit
test_window.py
Edit
test_zoomheight.py
Edit