diff --git a/ChangeLog b/ChangeLog index 4329c93355..8d8187ee11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-06-10 Thomas Vander Stichele + + * gst/__init__.py: + * testsuite/Makefile.am: + * testsuite/caps.py: + adding a caps test + 2004-06-09 Johan Dahlin * gst/gstbuffer.override (_wrap_gst_buffer_flag_is_set) diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am index e4210177de..b26ff63bbf 100644 --- a/testsuite/Makefile.am +++ b/testsuite/Makefile.am @@ -1,4 +1,5 @@ tests = \ + caps.py \ common.py \ element.py \ interface.py \ diff --git a/testsuite/caps.py b/testsuite/caps.py new file mode 100644 index 0000000000..ebd0475287 --- /dev/null +++ b/testsuite/caps.py @@ -0,0 +1,12 @@ +import sys +from common import gst, unittest + +class CapsTest(unittest.TestCase): + def testCapsMime(self): + caps = gst.caps_from_string('video/x-raw-yuv,width=10,framerate=5.0') + structure = caps.get_structure(0) + mime = structure.get_name() + assert mime == 'video/x-raw-yuv' + +if __name__ == "__main__": + unittest.main() diff --git a/testsuite/test_caps.py b/testsuite/test_caps.py new file mode 100644 index 0000000000..ebd0475287 --- /dev/null +++ b/testsuite/test_caps.py @@ -0,0 +1,12 @@ +import sys +from common import gst, unittest + +class CapsTest(unittest.TestCase): + def testCapsMime(self): + caps = gst.caps_from_string('video/x-raw-yuv,width=10,framerate=5.0') + structure = caps.get_structure(0) + mime = structure.get_name() + assert mime == 'video/x-raw-yuv' + +if __name__ == "__main__": + unittest.main()