[pitivi] Adpapt the test to the new EffectFactory
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Adpapt the test to the new EffectFactory
- Date: Wed, 22 Sep 2010 13:41:00 +0000 (UTC)
commit 944b294701f7393f2ff24bdafcbb28ca15578879
Author: Thibault Saunier <tsaunier gnome org>
Date: Thu Jul 15 13:42:26 2010 -0400
Adpapt the test to the new EffectFactory
tests/test_factories_operation.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/tests/test_factories_operation.py b/tests/test_factories_operation.py
index 46ea2bc..5635a03 100644
--- a/tests/test_factories_operation.py
+++ b/tests/test_factories_operation.py
@@ -28,20 +28,22 @@ import gst
from common import TestCase
-from pitivi.log.log import debug
from pitivi.factories.operation import EffectFactory
+from pitivi.stream import VideoStream
class TestVideoEffectFactory(TestCase):
def setUp(self):
TestCase.setUp(self)
+ self.stream = VideoStream(gst.Caps("video/x-raw-rgb"))
self.factory = EffectFactory ('identity', 'identity')
+ self.factory.addOutputStream(self.stream)
+ self.factory.addInputStream(self.stream)
def testMakeBin (self):
bin = self.factory.makeBin()
bin2 = self.factory.makeBin()
- self.failUnless(isinstance(bin, gst.BaseTransform))
- self.failUnless(bin.get_factory().get_name() == "identity" )
- debug ('TestOperationFactory','%s %s','Bin is:', bin.get_factory().get_name())
+ self.failUnless(isinstance(bin, gst.Bin))
+ self.failUnless(bin.get_by_name("ffmpegcsp0"))
self.factory.releaseBin(bin)
self.factory.releaseBin(bin2)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]