[pitivi] test_factories_file: Fix check due to my latest commits
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] test_factories_file: Fix check due to my latest commits
- Date: Thu, 11 Jun 2009 12:41:09 -0400 (EDT)
commit e84bf45787a8f290dfa2c5c74a15d5b147582624
Author: Edward Hervey <bilboed bilboed com>
Date: Thu Jun 11 18:39:04 2009 +0200
test_factories_file: Fix check due to my latest commits
tests/test_factories_file.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/tests/test_factories_file.py b/tests/test_factories_file.py
index cb29a7f..097517e 100644
--- a/tests/test_factories_file.py
+++ b/tests/test_factories_file.py
@@ -76,10 +76,11 @@ class TestFileSourceFactory(TestCase):
self.factory.addOutputStream(audio)
bin = self.factory.makeBin(video)
- self.failUnless(isinstance(bin, StubSingleDecodeBin))
- self.failUnlessEqual(bin.uri, 'file:///path/to/file')
- self.failUnlessEqual(video.caps, bin.caps)
- self.failUnlessEqual(video, bin.stream)
+ self.failUnless(hasattr(bin, "dbin"))
+ self.failUnless(isinstance(bin.dbin, StubSingleDecodeBin))
+ self.failUnlessEqual(bin.dbin.uri, 'file:///path/to/file')
+ self.failUnlessEqual(video.caps, bin.dbin.caps)
+ self.failUnlessEqual(video, bin.dbin.stream)
self.factory.releaseBin(bin)
class StubPictureFileSourceFactory(PictureFileSourceFactory):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]