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

Method setUp

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

Source from the content-addressed store, hash-verified

77
78class PadPushLinkedTest(TestCase):
79 def setUp(self):
80 TestCase.setUp(self)
81 self.src = gst.Pad("src", gst.PAD_SRC)
82 self.sink = gst.Pad("sink", gst.PAD_SINK)
83 caps = gst.caps_from_string("foo/bar")
84 self.src.set_caps(caps)
85 self.sink.set_caps(caps)
86 self.sink.set_chain_function(self._chain_func)
87 self.src.set_active(True)
88 self.sink.set_active(True)
89 self.src.link(self.sink)
90 self.buffers = []
91
92 def tearDown(self):
93 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