summaryrefslogtreecommitdiff
path: root/testsuite/test_caps.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/test_caps.py')
-rw-r--r--testsuite/test_caps.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/test_caps.py b/testsuite/test_caps.py
index 2eb33d0..60360c5 100644
--- a/testsuite/test_caps.py
+++ b/testsuite/test_caps.py
@@ -50,14 +50,15 @@ class CapsTest(TestCase):
def testCapsContainingMiniObjects(self):
# buffer contains hex encoding of ascii 'abcd'
caps = gst.Caps("video/x-raw-yuv, buf=(buffer)61626364")
- assert isinstance(caps[0]['buf'], gst.Buffer)
+ buf = caps[0]['buf']
+ assert isinstance(buf, gst.Buffer)
+ assert buf.data == "abcd"
buf = gst.Buffer("1234")
caps[0]['buf2'] = buf
buf2 = caps[0]['buf2']
assert buf2 == buf
-
def testCapsConstructEmpty(self):
caps = gst.Caps()
assert isinstance(caps, gst.Caps)