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

Method setUp

testsuite/old/test_event.py:76–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74class EventFileSrcTest(TestCase):
75
76 def setUp(self):
77 TestCase.setUp(self)
78 gst.info("start")
79 self.filename = tempfile.mktemp()
80 open(self.filename, 'w').write(''.join(map(str, range(10))))
81
82 self.pipeline = gst.parse_launch('filesrc name=source location=%s blocksize=1 ! fakesink signal-handoffs=1 name=sink' % self.filename)
83 self.source = self.pipeline.get_by_name('source')
84 self.sink = self.pipeline.get_by_name('sink')
85 self.sigid = self.sink.connect('handoff', self.handoff_cb)
86 self.bus = self.pipeline.get_bus()
87
88 def tearDown(self):
89 self.pipeline.set_state(gst.STATE_NULL)

Callers

nothing calls this directly

Calls 1

setUpMethod · 0.45

Tested by

no test coverage detected