[pitivi: 84/94] presets: partially fix the test case
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 84/94] presets: partially fix the test case
- Date: Sun, 11 Sep 2011 16:19:30 +0000 (UTC)
commit 27cbc9d5a9047bc16b53bfa501e30a558cb37dcc
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Thu Sep 8 15:48:53 2011 -0400
presets: partially fix the test case
tests/test_preset.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/test_preset.py b/tests/test_preset.py
index 0a6e51b..312da61 100644
--- a/tests/test_preset.py
+++ b/tests/test_preset.py
@@ -32,7 +32,7 @@ class SimplePresetManager(PresetManager):
def __init__(self, empty_dir):
PresetManager.__init__(self)
- self.dir = empty_dir
+ self.user_path = self.dir = empty_dir
def _getFilename(self):
return os.path.join(self.dir, 'simple')
@@ -85,7 +85,7 @@ class TestProjectManager(TestCase):
'default_x_',
self.manager._convertSectionNameToPresetName('default_x_'))
- # Test that default_+ section names loose the last character.
+ # Test that default_+ section names lose the last character.
self.assertEqual(
'Default',
self.manager._convertSectionNameToPresetName('Default_'))
@@ -97,10 +97,10 @@ class TestProjectManager(TestCase):
self.manager.addPreset('preset one', {'name1': '1A'})
self.manager.addPreset('default_', {'name2': '2A'})
self.manager.addPreset('Default', {'name1': '1B', 'name2': '2B'})
- self.manager.save()
+ self.manager.saveAll()
other_manager = SimplePresetManager(self.tempdir)
- other_manager.load()
+ other_manager.loadAll()
default = other_manager.presets['Default']
self.assertEqual(2, len(default))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]