diff options
author | csabella <chekat2@gmail.com> | 2017-05-27 19:49:26 (GMT) |
---|---|---|
committer | terryjreedy <tjreedy@udel.edu> | 2017-05-27 19:49:26 (GMT) |
commit | 5a346d5dbc1f0f70eca706a8ba19f7645bf17837 (patch) | |
tree | 31cdd64919e91d0d9e4276dcd5371b6346a64e11 /Lib/idlelib/idle_test | |
parent | c0364fc7c2693fb070917ee62aeb8d2551710821 (diff) | |
download | cpython-5a346d5dbc1f0f70eca706a8ba19f7645bf17837.zip cpython-5a346d5dbc1f0f70eca706a8ba19f7645bf17837.tar.gz cpython-5a346d5dbc1f0f70eca706a8ba19f7645bf17837.tar.bz2 |
bpo-30290: IDLE: Refactor help_about to PEP8 names (#1714)
Patch by Cheryl Sabella.
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r-- | Lib/idlelib/idle_test/test_help_about.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Lib/idlelib/idle_test/test_help_about.py b/Lib/idlelib/idle_test/test_help_about.py index 031c7ff..484f39f 100644 --- a/Lib/idlelib/idle_test/test_help_about.py +++ b/Lib/idlelib/idle_test/test_help_about.py @@ -15,9 +15,9 @@ import unittest About = help_about.AboutDialog class Dummy_about_dialog(): # Dummy class for testing file display functions. - idle_credits = About.ShowIDLECredits - idle_readme = About.ShowIDLEAbout - idle_news = About.ShowIDLENEWS + idle_credits = About.show_idle_credits + idle_readme = About.show_readme + idle_news = About.show_idle_news # Called by the above display_file_text = About.display_file_text _utest = True @@ -47,9 +47,9 @@ class AboutDialogTest(unittest.TestCase): def test_printer_dialog(self): """This will test dialog which using printer""" - buttons = [(license, self.dialog.buttonLicense), - (copyright, self.dialog.buttonCopyright), - (credits, self.dialog.buttonCredits)] + buttons = [(license, self.dialog.py_license), + (copyright, self.dialog.py_copyright), + (credits, self.dialog.py_credits)] for printer, button in buttons: dialog = self.dialog @@ -64,9 +64,9 @@ class AboutDialogTest(unittest.TestCase): def test_file_dialog(self): """This will test dialog which using file""" - buttons = [('README.txt', self.dialog.idle_about_b), - ('NEWS.txt', self.dialog.idle_news_b), - ('CREDITS.txt', self.dialog.idle_credits_b)] + buttons = [('README.txt', self.dialog.readme), + ('NEWS.txt', self.dialog.idle_news), + ('CREDITS.txt', self.dialog.idle_credits)] for filename, button in buttons: dialog = self.dialog |