gstreamer/bindings/python/testsuite/test_timeline_file_source.py

19 lines
543 B
Python
Raw Normal View History

2011-06-10 14:58:55 +00:00
import gst
from common import TestCase
import ges
2011-06-10 14:58:55 +00:00
class TimelineFileSource(TestCase):
def testTimelineFileSource(self):
src = ges.TimelineFileSource("file://blahblahblah")
2011-06-10 14:58:55 +00:00
src.set_mute(True)
src.set_max_duration(long(100))
src.set_supported_formats("video")
assert (src.get_supported_formats().value_nicks[0] == "video")
src.set_is_image(True)
assert (src.get_max_duration() == 100)
assert (src.is_image() == True)
assert (src.get_uri() == "file://blahblahblah")