gstreamer/bindings/python/testsuite/test_simple_layer.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
566 B
Python

import glib
import gst
from common import TestCase
import ges
class SimpleLayer(TestCase):
def testSimpleLayer(self):
lyr = ges.SimpleTimelineLayer()
tl = ges.Timeline()
src = ges.TimelineTestSource()
src2 = ges.TimelineTestSource()
lyr.set_timeline(tl)
assert (lyr.add_object(src, 0) == True)
assert (lyr.add_object(src2, 1) == True)
assert (lyr.nth(0) == src)
assert (lyr.move_object (src, 1) == True)
self.failIf(lyr.index(src) != 1)
assert (lyr.is_valid() == True)