1"Test scrolledlist, coverage 38%."
2
3from idlelib.scrolledlist import ScrolledList
4import unittest
5from test.support import requires
6requires('gui')
7from tkinter import Tk
8
9
10class ScrolledListTest(unittest.TestCase):
11
12    @classmethod
13    def setUpClass(cls):
14        cls.root = Tk()
15
16    @classmethod
17    def tearDownClass(cls):
18        cls.root.destroy()
19        del cls.root
20
21
22    def test_init(self):
23        ScrolledList(self.root)
24
25
26if __name__ == '__main__':
27    unittest.main(verbosity=2)
28