Home | History | Annotate | Download | only in idle_test
      1 "Test scrolledlist, coverage 38%."
      2 
      3 from idlelib.scrolledlist import ScrolledList
      4 import unittest
      5 from test.support import requires
      6 requires('gui')
      7 from tkinter import Tk
      8 
      9 
     10 class 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 
     26 if __name__ == '__main__':
     27     unittest.main(verbosity=2)
     28