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

Method setUp

testsuite/old/test_pad.py:265–275  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

263
264class PadPushProbeLinkTest(TestCase):
265 def setUp(self):
266 TestCase.setUp(self)
267 self.src = gst.Pad("src", gst.PAD_SRC)
268 self.sink = gst.Pad("sink", gst.PAD_SINK)
269 caps = gst.caps_from_string("foo/bar")
270 self.src.set_caps(caps)
271 self.sink.set_caps(caps)
272 self.src.set_active(True)
273 self.sink.set_active(True)
274 self.sink.set_chain_function(self._chain_func)
275 self.buffers = []
276
277 def tearDown(self):
278 self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3)

Callers

nothing calls this directly

Calls 3

set_capsMethod · 0.80
set_chain_functionMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected