add test
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 10 Jun 2004 18:14:22 +0000 (18:14 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 10 Jun 2004 18:14:22 +0000 (18:14 +0000)
Original commit message from CVS:
add test

ChangeLog
testsuite/Makefile.am
testsuite/caps.py [new file with mode: 0644]
testsuite/test_caps.py [new file with mode: 0644]

index 4329c93..8d8187e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-06-10  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * gst/__init__.py:
+       * testsuite/Makefile.am:
+       * testsuite/caps.py:
+         adding a caps test
+
 2004-06-09  Johan Dahlin  <johan@gnome.org>
 
        * gst/gstbuffer.override (_wrap_gst_buffer_flag_is_set) 
index e421017..b26ff63 100644 (file)
@@ -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 (file)
index 0000000..ebd0475
--- /dev/null
@@ -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 (file)
index 0000000..ebd0475
--- /dev/null
@@ -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()