From: <tho...@fr...> - 2005-09-08 15:17:27
|
CVS Root: /cvs/gstreamer Module: gst-python Changes by: thomasvs Date: Thu Sep 08 2005 08:17:25 PDT Log message: fix other tests as well Modified files: . : ChangeLog testsuite : test_element.py test_pipeline.py Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/ChangeLog.diff?r1=1.228&r2=1.229 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/testsuite/test_element.py.diff?r1=1.20&r2=1.21 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/testsuite/test_pipeline.py.diff?r1=1.7&r2=1.8 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-python/ChangeLog,v retrieving revision 1.228 retrieving revision 1.229 diff -u -d -r1.228 -r1.229 --- ChangeLog 8 Sep 2005 15:13:05 -0000 1.228 +++ ChangeLog 8 Sep 2005 15:17:12 -0000 1.229 @@ -1,5 +1,11 @@ 2005-09-08 Thomas Vander Stichele <thomas at apestaart dot org> + * testsuite/test_element.py: + * testsuite/test_pipeline.py: + fix other tests as well + +2005-09-08 Thomas Vander Stichele <thomas at apestaart dot org> * gst/gstelement.override: * testsuite/test_bin.py: wrap gst.Element.get_state, returning a tuple Index: test_element.py RCS file: /cvs/gstreamer/gst-python/testsuite/test_element.py,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- test_element.py 8 Sep 2005 14:08:32 -0000 1.20 +++ test_element.py 8 Sep 2005 15:17:13 -0000 1.21 @@ -99,13 +99,13 @@ assert new_s == new assert self.element.set_state(old) - assert self.element.get_state() == old + assert self.element.get_state(0.0)[1] == old # FIXME: replace with messages # self.element.connect('state-change', state_change_cb) assert self.element.set_state(new) - assert self.element.get_state() == new + assert self.element.get_state(0.0)[1] == new def testStateChangeNullReady(self): self.checkStateChange(gst.STATE_NULL, gst.STATE_READY) Index: test_pipeline.py RCS file: /cvs/gstreamer/gst-python/testsuite/test_pipeline.py,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- test_pipeline.py 1 Sep 2005 15:50:46 -0000 1.7 +++ test_pipeline.py 8 Sep 2005 15:17:13 -0000 1.8 @@ -42,15 +42,15 @@ gst.element_link_many(source, sink) def testRun(self): - self.assertEqual(self.pipeline.get_state(), gst.STATE_NULL) + self.assertEqual(self.pipeline.get_state(None)[1], gst.STATE_NULL) self.pipeline.set_state(gst.STATE_PLAYING) - self.assertEqual(self.pipeline.get_state(), gst.STATE_PLAYING) + self.assertEqual(self.pipeline.get_state(None)[1], gst.STATE_PLAYING) time.sleep(1) self.pipeline.set_state(gst.STATE_NULL) - self.assertEqual(self.pipeline.get_state(), gst.STATE_NULL) if __name__ == "__main__": unittest.main() |