Coverage for idle_test/test_debugobj_r.py: 87%
13 statements
« prev ^ index » next coverage.py v7.2.5, created at 2023-05-11 13:22 -0700
« prev ^ index » next coverage.py v7.2.5, created at 2023-05-11 13:22 -0700
1"Test debugobj_r, coverage 56%."
3from idlelib import debugobj_r
4import unittest
7class WrappedObjectTreeItemTest(unittest.TestCase):
9 def test_getattr(self):
10 ti = debugobj_r.WrappedObjectTreeItem(list) 1c
11 self.assertEqual(ti.append, list.append) 1c
13class StubObjectTreeItemTest(unittest.TestCase):
15 def test_init(self):
16 ti = debugobj_r.StubObjectTreeItem('socket', 1111) 1b
17 self.assertEqual(ti.sockio, 'socket') 1b
18 self.assertEqual(ti.oid, 1111) 1b
21if __name__ == '__main__': 21 ↛ 22line 21 didn't jump to line 22, because the condition on line 21 was never true
22 unittest.main(verbosity=2)