[pitivi] tests: Update testGetUniquePresetName



commit b4578f7ccbd9733fc39f48570cf597163f60c3a2
Author: Alex BÄluÈ <alexandru balut gmail com>
Date:   Sat Nov 10 19:19:38 2012 +0100

    tests: Update testGetUniquePresetName

 tests/test_projectsettings.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tests/test_projectsettings.py b/tests/test_projectsettings.py
index 8d75a95..290c1c8 100644
--- a/tests/test_projectsettings.py
+++ b/tests/test_projectsettings.py
@@ -30,14 +30,14 @@ class TestProjectSettingsDialog(TestCase):
     def testGetUniquePresetName(self):
         preset_manager = PresetManager()
         name = ProjectSettingsDialog._getUniquePresetName(preset_manager)
-        self.assertEqual('New Preset', name)
+        self.assertEqual('New preset', name)
 
         preset_manager.addPreset(name, {})
         new_preset1 = ProjectSettingsDialog._getUniquePresetName(preset_manager)
-        self.assertEqual('New Preset 1', new_preset1)
+        self.assertEqual('New preset 1', new_preset1)
 
-        # Intentionally add 'New Preset 2' before 'New Preset 1'.
-        preset_manager.addPreset('New Preset 2', {})
-        preset_manager.addPreset(new_preset1, {})
+        # Intentionally add 'New preset 2' before 'New preset 1'.
+        preset_manager.addPreset('New preset 2', {})
+        preset_manager.addPreset('New preset 1', {})
         new_preset3 = ProjectSettingsDialog._getUniquePresetName(preset_manager)
-        self.assertEqual('New Preset 3', new_preset3)
+        self.assertEqual('New preset 3', new_preset3)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]