* morituri/test/test_common_gstreamer.py (added):
* morituri/common/gstreamer.py: * morituri/test/Makefile.am: add functions to get versions of gstreamer, gst-python, and element factory plugins.
This commit is contained in:
@@ -10,6 +10,7 @@ EXTRA_DIST = \
|
||||
test_common_config.py \
|
||||
test_common_drive.py \
|
||||
test_common_encode.py \
|
||||
test_common_gstreamer.py \
|
||||
test_common_musicbrainzngs.py \
|
||||
test_common_program.py \
|
||||
test_common_renamer.py \
|
||||
|
||||
21
morituri/test/test_common_gstreamer.py
Normal file
21
morituri/test/test_common_gstreamer.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
|
||||
from morituri.common import gstreamer
|
||||
|
||||
from morituri.test import common
|
||||
|
||||
|
||||
class VersionTestCase(common.TestCase):
|
||||
|
||||
def testGStreamer(self):
|
||||
version = gstreamer.gstreamerVersion()
|
||||
self.failUnless(version.startswith('0.'))
|
||||
|
||||
def testGSTPython(self):
|
||||
version = gstreamer.gstPythonVersion()
|
||||
self.failUnless(version.startswith('0.'))
|
||||
|
||||
def testFlacEnc(self):
|
||||
version = gstreamer.elementFactoryVersion('flacenc')
|
||||
self.failUnless(version.startswith('0.'))
|
||||
Reference in New Issue
Block a user