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

Method tearDown

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

Source from the content-addressed store, hash-verified

90 self.buffers = []
91
92 def tearDown(self):
93 self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3)
94 self.assertEquals(self.src.__gstrefcount__, 1)
95 self.src.set_caps(None)
96 del self.src
97 self.assertEquals(sys.getrefcount(self.sink), pygobject_2_13 and 2 or 3)
98 self.assertEquals(self.sink.__gstrefcount__, 1)
99 self.sink.set_caps(None)
100 del self.sink
101 TestCase.tearDown(self)
102
103 def _chain_func(self, pad, buffer):
104 gst.debug('got buffer %r, id %x, with GMO rc %d'% (

Callers

nothing calls this directly

Calls 2

set_capsMethod · 0.80
tearDownMethod · 0.45

Tested by

no test coverage detected