[pitivi: 1/4] Fix test break introduced by d28582fd94f4a292d5dd08de149c984c65589287



commit 15c5507195e43774970f701b8761e5ec22ba7d55
Author: Edward Hervey <bilboed bilboed com>
Date:   Mon Apr 20 12:36:19 2009 +0200

    Fix test break introduced by d28582fd94f4a292d5dd08de149c984c65589287
---
 tests/test_formatter.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/test_formatter.py b/tests/test_formatter.py
index f73337d..2d4bf23 100644
--- a/tests/test_formatter.py
+++ b/tests/test_formatter.py
@@ -331,6 +331,8 @@ class TestFormatterLoad(TestCase):
         element = Element("source")
         element.attrib["id"] = "1"
         element.attrib["type"] = "pitivi.factories.test.VideoTestSourceFactory"
+        element.attrib["duration"] = 5 * gst.SECOND
+        element.attrib["default_duration"] = 5 * gst.SECOND
         output_streams = SubElement(element, "output-streams")
         output_stream = SubElement(output_streams, "stream")
         caps = gst.Caps("video/x-raw-yuv")
@@ -343,6 +345,8 @@ class TestFormatterLoad(TestCase):
         self.failUnlessEqual(len(factory.output_streams), 2)
 
         self.failUnlessEqual(self.formatter._context.factories["1"], factory)
+        self.failUnlessEqual(factory.duration, 5 * gst.SECOND)
+        self.failUnlessEqual(factory.default_duration, 5 * gst.SECOND)
 
     def testLoadFactoryRef(self):
         class Tag(object): pass



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