tests: python: Move assertTimelineTopology to the baseclass
authorThibault Saunier <tsaunier@igalia.com>
Fri, 8 Feb 2019 20:47:48 +0000 (17:47 -0300)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 15 Mar 2019 23:51:55 +0000 (23:51 +0000)
tests/check/python/common.py
tests/check/python/test_timeline.py

index cd37d1d..e30be96 100644 (file)
@@ -175,3 +175,15 @@ class GESSimpleTimelineTest(GESTest):
 
         return clip
 
+    def assertTimelineTopology(self, topology):
+        res = []
+        for layer in self.timeline.get_layers():
+            layer_timings = []
+            for clip in layer.get_clips():
+                layer_timings.append(
+                    (type(clip), clip.props.start, clip.props.duration))
+
+            res.append(layer_timings)
+
+        self.assertEqual(topology, res)
+        return res
\ No newline at end of file
index 7d56f0f..344002b 100644 (file)
@@ -69,19 +69,6 @@ class TestSplitting(common.GESSimpleTimelineTest):
         self.track_types = [GES.TrackType.AUDIO]
         super(TestSplitting, self).setUp()
 
-    def assertTimelineTopology(self, topology):
-        res = []
-        for layer in self.timeline.get_layers():
-            layer_timings = []
-            for clip in layer.get_clips():
-                layer_timings.append(
-                    (type(clip), clip.props.start, clip.props.duration))
-
-            res.append(layer_timings)
-
-        self.assertEqual(topology, res)
-        return res
-
     def test_spliting_with_auto_transition_on_the_left(self):
         self.timeline.props.auto_transition = True
         clip1 = self.add_clip(0, 0, 100)