summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/test_help_about.py
diff options
context:
space:
mode:
authorterryjreedy <tjreedy@udel.edu>2017-06-23 16:59:59 (GMT)
committerGitHub <noreply@github.com>2017-06-23 16:59:59 (GMT)
commit1b7474dedcbbd731a362b17abfbd7e5a60b64f63 (patch)
treefc37bd95b9d8b66ae28dcab294c48968b89d24cc /Lib/idlelib/idle_test/test_help_about.py
parentcea2174ab7cce01c420b2770562be4c91f1f4e35 (diff)
downloadcpython-1b7474dedcbbd731a362b17abfbd7e5a60b64f63.zip
cpython-1b7474dedcbbd731a362b17abfbd7e5a60b64f63.tar.gz
cpython-1b7474dedcbbd731a362b17abfbd7e5a60b64f63.tar.bz2
[3.6] bpo-24813: IDLE: Add icon to help_about (GH-2335) (#2359)
Patch by Cheryl Sabella (cherry picked from commit d352d68)
Diffstat (limited to 'Lib/idlelib/idle_test/test_help_about.py')
-rw-r--r--Lib/idlelib/idle_test/test_help_about.py7
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