summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMichael Smith <msmith@xiph.org>2007-02-25 12:11:34 +0000
committerMichael Smith <msmith@xiph.org>2007-02-25 12:11:34 +0000
commit4d9d385f44895e8b423461409bd98e31de958c6f (patch)
treecea1768a92244c72ac8bc160e6fd10d931b7c098 /testsuite
parente4bd9d306c921619f986f5583776131ce24ee835 (diff)
gst/pygstvalue.c: Make buffers-in-gvalues more generic: handle all miniobjects
Original commit message from CVS: * gst/pygstvalue.c: (pygst_value_init_for_pyobject), (pygst_value_from_pyobject): Make buffers-in-gvalues more generic: handle all miniobjects * testsuite/test_caps.py: Add a bit to one the test for buffers in caps.
Diffstat (limited to 'testsuite')
-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)