bpo-24813: IDLE: Add icon to help_about (#2335)

Patch by Cheryl Sabella
This commit is contained in:
csabella 2017-06-23 12:00:29 -04:00 committed by terryjreedy
parent f87b85f808
commit d352d68977
2 changed files with 19 additions and 4 deletions

View file

@ -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