timeline-object: Add TrackObject to the Track after the TimelineObject
[platform/upstream/gstreamer.git] / bindings / python / testsuite / test_layer.py
1 import glib
2 import gst
3
4 from common import TestCase
5 import ges
6
7 class Layer(TestCase):
8
9     def testLayer(self):
10         lyr = ges.TimelineLayer()
11         tl = ges.Timeline()
12         src = ges.TimelineTestSource()
13
14         lyr.set_timeline(tl)
15
16         assert (lyr.add_object(src) == True)
17         self.failIf(len (lyr.get_objects()) != 1)
18         assert (lyr.remove_object(src) == True)
19
20         lyr.set_priority(1)
21         self.failIf(lyr.get_priority() != 1)