2018-06-19 20:12:52 -03:00
|
|
|
"Test scrolledlist, coverage 38%."
|
2016-06-10 19:19:21 -03:00
|
|
|
|
2018-06-19 20:12:52 -03:00
|
|
|
from idlelib.scrolledlist import ScrolledList
|
|
|
|
import unittest
|
2016-06-10 19:19:21 -03:00
|
|
|
from test.support import requires
|
|
|
|
requires('gui')
|
|
|
|
from tkinter import Tk
|
|
|
|
|
|
|
|
|
|
|
|
class ScrolledListTest(unittest.TestCase):
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
cls.root = Tk()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
cls.root.destroy()
|
|
|
|
del cls.root
|
|
|
|
|
|
|
|
|
|
|
|
def test_init(self):
|
2018-06-19 20:12:52 -03:00
|
|
|
ScrolledList(self.root)
|
2016-06-10 19:19:21 -03:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main(verbosity=2)
|