ยปCore Development>Code coverage>Lib/idlelib/idle_test/test_scrolledlist.py

Python code coverage for Lib/idlelib/idle_test/test_scrolledlist.py

#countcontent
1n/a''' Test idlelib.scrolledlist.
2n/a
3n/aCoverage: 39%
4n/a'''
5n/afrom idlelib import scrolledlist
6n/afrom test.support import requires
7n/arequires('gui')
8n/aimport unittest
9n/afrom tkinter import Tk
10n/a
11n/a
12n/aclass ScrolledListTest(unittest.TestCase):
13n/a
14n/a @classmethod
15n/a def setUpClass(cls):
16n/a cls.root = Tk()
17n/a
18n/a @classmethod
19n/a def tearDownClass(cls):
20n/a cls.root.destroy()
21n/a del cls.root
22n/a
23n/a
24n/a def test_init(self):
25n/a scrolledlist.ScrolledList(self.root)
26n/a
27n/a
28n/aif __name__ == '__main__':
29n/a unittest.main(verbosity=2)