summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-07-01 12:28:52 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-07-01 12:30:40 +0200
commitf1bbb486aedfd449e5f52edc1cf25ed3b6008007 (patch)
tree6f3e5d4345eea2bf485bb61877b171449ffd0d90 /testsuite
parenta018096a7cd7adf0941281d7138a8ef656429e70 (diff)
gst.Event: Add override for step event
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/test_event.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/test_event.py b/testsuite/test_event.py
index 4b46dc6..6a4860d 100644
--- a/testsuite/test_event.py
+++ b/testsuite/test_event.py
@@ -225,5 +225,20 @@ class TestDelayedEventProbe(TestCase):
# now let the buffer through
return True
+class TestEventCreationParsing(TestCase):
+
+ def testEventStep(self):
+ if hasattr(gst.Event, "parse_step"):
+ e = gst.event_new_step(gst.FORMAT_TIME, 42, 1.0, True, True)
+
+ self.assertEquals(e.type, gst.EVENT_STEP)
+
+ fmt, amount, rate, flush, intermediate = e.parse_step()
+ self.assertEquals(fmt, gst.FORMAT_TIME)
+ self.assertEquals(amount, 42)
+ self.assertEquals(rate, 1.0)
+ self.assertEquals(flush, True)
+ self.assertEquals(intermediate, True)
+
if __name__ == "__main__":
unittest.main()