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