mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
add test
Original commit message from CVS: add test
This commit is contained in:
parent
57b9efc9cf
commit
32561828aa
4 changed files with 32 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
tests = \
|
||||
caps.py \
|
||||
common.py \
|
||||
element.py \
|
||||
interface.py \
|
||||
|
|
12
testsuite/caps.py
Normal file
12
testsuite/caps.py
Normal 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
12
testsuite/test_caps.py
Normal 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()
|
Loading…
Reference in a new issue