• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"Test debugobj_r, coverage 56%."
2
3from idlelib import debugobj_r
4import unittest
5
6
7class WrappedObjectTreeItemTest(unittest.TestCase):
8
9    def test_getattr(self):
10        ti = debugobj_r.WrappedObjectTreeItem(list)
11        self.assertEqual(ti.append, list.append)
12
13class StubObjectTreeItemTest(unittest.TestCase):
14
15    def test_init(self):
16        ti = debugobj_r.StubObjectTreeItem('socket', 1111)
17        self.assertEqual(ti.sockio, 'socket')
18        self.assertEqual(ti.oid, 1111)
19
20
21if __name__ == '__main__':
22    unittest.main(verbosity=2)
23