From 9aa2e0ee2e3ac859b2612d1f0ad3ee3ca315910a Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Sun, 17 Nov 2019 00:29:19 -0700 Subject: [PATCH] Add a small test. --- Lib/idlelib/idle_test/test_configdialog.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/idlelib/idle_test/test_configdialog.py b/Lib/idlelib/idle_test/test_configdialog.py index 1f14ed1f264..92891f81cd8 100644 --- a/Lib/idlelib/idle_test/test_configdialog.py +++ b/Lib/idlelib/idle_test/test_configdialog.py @@ -1139,6 +1139,11 @@ class GenPageTest(unittest.TestCase): self.page.cursor_blink_bool.invoke() self.assertEqual(mainpage, {'EditorWindow': {'cursor-blink': 'False'}}) + def test_strip_trailing_space_on_save(self): + self.page.strip_trailing_space_save_bool.invoke() + name = 'strip-trailing-whitespace-on-save' + self.assertEqual(mainpage, {'EditorWindow': {name: 'False'}}) + def test_autocomplete_wait(self): self.page.auto_wait_int.delete(0, 'end') self.page.auto_wait_int.insert(0, '11')