[pitivi] tests: Fixed testRenamePreset



commit 99d575d75e02dd2865d9324a576583e217353941
Author: Alex BÄluÈ <alexandru balut gmail com>
Date:   Sun Nov 11 10:37:29 2012 +0100

    tests: Fixed testRenamePreset

 pitivi/preset.py     |   10 ++++++++++
 tests/test_preset.py |    8 +++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/preset.py b/pitivi/preset.py
index c7be805..58b6dc3 100644
--- a/pitivi/preset.py
+++ b/pitivi/preset.py
@@ -302,6 +302,16 @@ class PresetManager(object):
             return True
         return False
 
+    def saveSection(self, fout, section):
+        """Save the specified section into the specified file.
+
+        @param fout: The file where to save the section.
+        @type parser: file
+        @param section: The name of the section to be saved.
+        @type section: string
+        """
+        raise NotImplementedError()
+
 
 class VideoPresetManager(PresetManager):
 
diff --git a/tests/test_preset.py b/tests/test_preset.py
index afabceb..1c35b87 100644
--- a/tests/test_preset.py
+++ b/tests/test_preset.py
@@ -34,10 +34,16 @@ from pitivi.preset import DuplicatePresetNameException, \
     AudioPresetManager
 
 
+class FakePresetManager(PresetManager):
+
+    def saveSection(self, fout, section):
+        pass
+
+
 class TestPresetBasics(TestCase):
 
     def setUp(self):
-        self.manager = PresetManager()
+        self.manager = FakePresetManager()
         self.user_path = tempfile.mkdtemp()
         self.manager.user_path = self.user_path  # Keep PresetManager happy
 



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