diff options
author | csabella <cheryl.sabella@gmail.com> | 2017-06-23 16:00:29 (GMT) |
---|---|---|
committer | terryjreedy <tjreedy@udel.edu> | 2017-06-23 16:00:29 (GMT) |
commit | d352d689775699c289e011e8cec52c23c600b7fa (patch) | |
tree | 601fb39913b45ee4c5e36a583fdd36900de6a5b9 /Lib/idlelib/idle_test | |
parent | f87b85f80853c580b1c8bf78a51b0e9a25f6e1a7 (diff) | |
download | cpython-d352d689775699c289e011e8cec52c23c600b7fa.zip cpython-d352d689775699c289e011e8cec52c23c600b7fa.tar.gz cpython-d352d689775699c289e011e8cec52c23c600b7fa.tar.bz2 |
bpo-24813: IDLE: Add icon to help_about (#2335)
Patch by Cheryl Sabella
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r-- | Lib/idlelib/idle_test/test_help_about.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_help_about.py b/Lib/idlelib/idle_test/test_help_about.py index 15d1b6b..f3ca75c 100644 --- a/Lib/idlelib/idle_test/test_help_about.py +++ b/Lib/idlelib/idle_test/test_help_about.py @@ -9,6 +9,7 @@ from idlelib.idle_test.mock_idle import Func from idlelib.idle_test.mock_tk import Mbox_func from idlelib.help_about import AboutDialog as About from idlelib import textview +import os.path class LiveDialogTest(unittest.TestCase): """Simulate user clicking buttons other than [Close]. @@ -33,6 +34,12 @@ class LiveDialogTest(unittest.TestCase): """Test about dialog title""" self.assertEqual(self.dialog.title(), 'About IDLE') + def test_dialog_logo(self): + """Test about dialog logo.""" + path, file = os.path.split(self.dialog.icon_image['file']) + fn, ext = os.path.splitext(file) + self.assertEqual(fn, 'idle_48') + def test_printer_buttons(self): """Test buttons whose commands use printer function.""" dialog = self.dialog |