gstreamer/bindings/python/testsuite/test_timeline_file_source.py
2011-08-11 14:40:10 +02:00

18 lines
538 B
Python

import gst
from common import TestCase
from gst import ges
class TimelineFileSource(TestCase):
def testTimelineFileSource(self):
src = ges.TimelineFileSource("blahblahblah")
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() == "blahblahblah")