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

Method testGet

testsuite/old/test_pipeline.py:109–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107
108class Bus(TestCase):
109 def testGet(self):
110 pipeline = gst.Pipeline('test')
111 self.assertEquals(pipeline.__gstrefcount__, 1)
112 bus = pipeline.get_bus()
113 self.assertEquals(pipeline.__gstrefcount__, 1)
114 # one for python and one for the pipeline
115 self.assertEquals(bus.__gstrefcount__, 2)
116
117 del pipeline
118 if not pygobject_2_13:
119 self.failUnless(self.gccollect())
120 self.assertEquals(bus.__gstrefcount__, 1)
121
122class PipelineAndBus(TestCase):
123 def setUp(self):

Callers

nothing calls this directly

Calls 1

gccollectMethod · 0.80

Tested by

no test coverage detected