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