gstreamer/bindings/python/testsuite/test_simple_layer.py

23 lines
566 B
Python
Raw Normal View History

2011-06-10 14:58:55 +00:00
import glib
import gst
from common import TestCase
import ges
2011-06-10 14:58:55 +00:00
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)