gstreamer/bindings/python/testsuite/test_timeline.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

22 lines
602 B
Python

import glib
import gst
from common import TestCase
import ges
class Timeline(TestCase):
def testTimeline(self):
tl = ges.timeline_new_audio_video()
lyr = ges.SimpleTimelineLayer()
tck = ges.track_audio_raw_new()
assert (tl.add_track(tck) == True)
#We should have two tracks from the timeline_new_audio_video() function + 1
self.failIf(len(tl.get_tracks()) != 3)
assert (tl.remove_track(tck) == True)
assert (tl.add_layer(lyr) == True)
self.failIf(len(tl.get_layers()) != 1)
assert (tl.remove_layer(lyr) == True)