Original commit message from CVS:
add test
This commit is contained in:
Thomas Vander Stichele 2004-06-10 18:14:22 +00:00
parent 57b9efc9cf
commit 32561828aa
4 changed files with 32 additions and 0 deletions

View file

@ -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)

View file

@ -1,4 +1,5 @@
tests = \
caps.py \
common.py \
element.py \
interface.py \

12
testsuite/caps.py Normal file
View file

@ -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()

12
testsuite/test_caps.py Normal file
View file

@ -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()