gstreamer/bindings/python/testsuite/test_track.py
Thibault Saunier 1b036156af pyges: Install it so we now use import ges
Using from gst import ges did not make much sense
2011-08-11 15:59:33 +02:00

24 lines
638 B
Python

import gst
from common import TestCase
import ges
class Track(TestCase):
def testTrack(self):
tck = ges.track_video_raw_new()
tl = ges.Timeline()
lyr = ges.TimelineLayer()
src = ges.TimelineTestSource()
caps = gst.caps_from_string("image/jpeg")
obj = ges.TrackParseLaunchEffect ("agingtv")
tl.add_layer(lyr)
src.add_track_object(obj)
lyr.add_object(src)
tck.set_timeline(tl)
assert (tck.add_object(obj) == True)
assert (tck.get_timeline() == tl)
tck.set_caps(caps)
assert (tck.get_caps().to_string() == "image/jpeg")