mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
Enable this test too
Original commit message from CVS: Enable this test too
This commit is contained in:
parent
607bb26a14
commit
49d73bebb2
2 changed files with 4 additions and 2 deletions
|
@ -5,6 +5,7 @@ class CapsTest(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.caps = gst.caps_from_string('video/x-raw-yuv,width=10,framerate=5.0;video/x-raw-rgb,width=15,framerate=10.0')
|
self.caps = gst.caps_from_string('video/x-raw-yuv,width=10,framerate=5.0;video/x-raw-rgb,width=15,framerate=10.0')
|
||||||
self.structure = self.caps.get_structure(0)
|
self.structure = self.caps.get_structure(0)
|
||||||
|
|
||||||
def testCapsMime(self):
|
def testCapsMime(self):
|
||||||
mime = self.structure.get_name()
|
mime = self.structure.get_name()
|
||||||
assert mime == 'video/x-raw-yuv'
|
assert mime == 'video/x-raw-yuv'
|
||||||
|
@ -18,7 +19,7 @@ class CapsTest(unittest.TestCase):
|
||||||
mime = structure.get_name()
|
mime = structure.get_name()
|
||||||
assert mime == 'video/x-raw-rgb'
|
assert mime == 'video/x-raw-rgb'
|
||||||
|
|
||||||
def _testCapsStructureChange(self):
|
def testCapsStructureChange(self):
|
||||||
'test if changing the structure of the caps works by reference'
|
'test if changing the structure of the caps works by reference'
|
||||||
assert self.structure['width'] == 10
|
assert self.structure['width'] == 10
|
||||||
self.structure['width'] = 5
|
self.structure['width'] = 5
|
||||||
|
|
|
@ -5,6 +5,7 @@ class CapsTest(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.caps = gst.caps_from_string('video/x-raw-yuv,width=10,framerate=5.0;video/x-raw-rgb,width=15,framerate=10.0')
|
self.caps = gst.caps_from_string('video/x-raw-yuv,width=10,framerate=5.0;video/x-raw-rgb,width=15,framerate=10.0')
|
||||||
self.structure = self.caps.get_structure(0)
|
self.structure = self.caps.get_structure(0)
|
||||||
|
|
||||||
def testCapsMime(self):
|
def testCapsMime(self):
|
||||||
mime = self.structure.get_name()
|
mime = self.structure.get_name()
|
||||||
assert mime == 'video/x-raw-yuv'
|
assert mime == 'video/x-raw-yuv'
|
||||||
|
@ -18,7 +19,7 @@ class CapsTest(unittest.TestCase):
|
||||||
mime = structure.get_name()
|
mime = structure.get_name()
|
||||||
assert mime == 'video/x-raw-rgb'
|
assert mime == 'video/x-raw-rgb'
|
||||||
|
|
||||||
def _testCapsStructureChange(self):
|
def testCapsStructureChange(self):
|
||||||
'test if changing the structure of the caps works by reference'
|
'test if changing the structure of the caps works by reference'
|
||||||
assert self.structure['width'] == 10
|
assert self.structure['width'] == 10
|
||||||
self.structure['width'] = 5
|
self.structure['width'] = 5
|
||||||
|
|
Loading…
Reference in a new issue