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

Method setUp

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

Source from the content-addressed store, hash-verified

158# test for event probes with linked pads
159class PadPushEventLinkedTest(TestCase):
160 def setUp(self):
161 TestCase.setUp(self)
162 self.src = gst.Pad("src", gst.PAD_SRC)
163 self.sink = gst.Pad("sink", gst.PAD_SINK)
164 caps = gst.caps_from_string("foo/bar")
165 self.src.set_caps(caps)
166 self.sink.set_caps(caps)
167 self.sink.set_chain_function(self._chain_func)
168 self.src.set_active(True)
169 self.sink.set_active(True)
170 self.src.link(self.sink)
171 self.events = []
172
173 def tearDown(self):
174 self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3)

Callers

nothing calls this directly

Calls 4

set_capsMethod · 0.80
set_chain_functionMethod · 0.80
linkMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected