Commit 5a346d5d authored by csabella's avatar csabella Committed by terryjreedy

bpo-30290: IDLE: Refactor help_about to PEP8 names (#1714)

Patch by Cheryl Sabella.
parent c0364fc7
This diff is collapsed.
...@@ -15,9 +15,9 @@ import unittest ...@@ -15,9 +15,9 @@ import unittest
About = help_about.AboutDialog About = help_about.AboutDialog
class Dummy_about_dialog(): class Dummy_about_dialog():
# Dummy class for testing file display functions. # Dummy class for testing file display functions.
idle_credits = About.ShowIDLECredits idle_credits = About.show_idle_credits
idle_readme = About.ShowIDLEAbout idle_readme = About.show_readme
idle_news = About.ShowIDLENEWS idle_news = About.show_idle_news
# Called by the above # Called by the above
display_file_text = About.display_file_text display_file_text = About.display_file_text
_utest = True _utest = True
...@@ -47,9 +47,9 @@ class AboutDialogTest(unittest.TestCase): ...@@ -47,9 +47,9 @@ class AboutDialogTest(unittest.TestCase):
def test_printer_dialog(self): def test_printer_dialog(self):
"""This will test dialog which using printer""" """This will test dialog which using printer"""
buttons = [(license, self.dialog.buttonLicense), buttons = [(license, self.dialog.py_license),
(copyright, self.dialog.buttonCopyright), (copyright, self.dialog.py_copyright),
(credits, self.dialog.buttonCredits)] (credits, self.dialog.py_credits)]
for printer, button in buttons: for printer, button in buttons:
dialog = self.dialog dialog = self.dialog
...@@ -64,9 +64,9 @@ class AboutDialogTest(unittest.TestCase): ...@@ -64,9 +64,9 @@ class AboutDialogTest(unittest.TestCase):
def test_file_dialog(self): def test_file_dialog(self):
"""This will test dialog which using file""" """This will test dialog which using file"""
buttons = [('README.txt', self.dialog.idle_about_b), buttons = [('README.txt', self.dialog.readme),
('NEWS.txt', self.dialog.idle_news_b), ('NEWS.txt', self.dialog.idle_news),
('CREDITS.txt', self.dialog.idle_credits_b)] ('CREDITS.txt', self.dialog.idle_credits)]
for filename, button in buttons: for filename, button in buttons:
dialog = self.dialog dialog = self.dialog
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment