MCPcopy Create free account
hub / github.com/GStreamer/gst-python / testBufferCaps

Method testBufferCaps

testsuite/old/test_buffer.py:167–175  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

165 assert buffer.offset_end == 2**64 - 1
166
167 def testBufferCaps(self):
168 buffer = gst.Buffer()
169 caps = gst.caps_from_string('foo/blah')
170 gst.info("before settings caps")
171 buffer.set_caps(caps)
172 gst.info("after settings caps")
173 c = buffer.get_caps()
174 gst.info("after getting caps")
175 self.assertEquals(caps, c)
176
177if __name__ == "__main__":
178 unittest.main()

Callers

nothing calls this directly

Calls 1

set_capsMethod · 0.80

Tested by

no test coverage detected