[pitivi] Adapt etree test to pass with the latest effect saving implementation



commit 125ab45f69d31b926f5b641259b89a8d25ad1066
Author: Thibault Saunier <tsaunier gnome org>
Date:   Tue Aug 10 11:30:09 2010 -0400

    Adapt etree test to pass with the latest effect saving implementation

 tests/test_etree_formatter.py |    2 +-
 tests/test_projectmanager.py  |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/test_etree_formatter.py b/tests/test_etree_formatter.py
index c8632cf..a146432 100644
--- a/tests/test_etree_formatter.py
+++ b/tests/test_etree_formatter.py
@@ -144,7 +144,7 @@ class TestFormatterSave(TestCase):
         effect_element = element.find('effect')
         self.failIfEqual(effect_element, None)
         self.failIfEqual(effect_element.find("factory"), None)
-        self.failIfEqual(effect_element.find("properties"), None)
+        self.failIfEqual(effect_element.find("gst-element-properties"), None)
 
     def testSaveTrackSource(self):
         video_stream = VideoStream(gst.Caps("video/x-raw-yuv"))
diff --git a/tests/test_projectmanager.py b/tests/test_projectmanager.py
index dbda9a3..f6dda5d 100644
--- a/tests/test_projectmanager.py
+++ b/tests/test_projectmanager.py
@@ -130,7 +130,7 @@ class TestProjectManager(TestCase):
 
             def _loadProject(self, location, project=None):
                 raise FormatterError()
-        self.manager._getFormatterForUri = lambda uri: FailFormatter()
+        self.manager._getFormatterForUri = lambda uri: FailFormatter([])
 
         uri = "file:///Untitled.xptv"
         self.manager.loadProject(uri)
@@ -167,7 +167,7 @@ class TestProjectManager(TestCase):
 
             def _fillTimeline(self):
                 pass
-        self.manager._getFormatterForUri = lambda uri: MissingUriFormatter()
+        self.manager._getFormatterForUri = lambda uri: MissingUriFormatter([])
 
         uri = "file:///Untitled.xptv"
         self.manager.loadProject(uri)
@@ -202,7 +202,7 @@ class TestProjectManager(TestCase):
 
             def _fillTimeline(self):
                 pass
-        self.manager._getFormatterForUri = lambda uri: EmptyFormatter()
+        self.manager._getFormatterForUri = lambda uri: EmptyFormatter([])
 
         uri = "file:///Untitled.xptv"
         self.manager.loadProject(uri)



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