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

Method testLoad

testsuite/test_plugin.py:32–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30
31class TestPlugin(TestCase):
32 def testLoad(self):
33 Gst.init(None)
34 p = Gst.parse_launch ("fakesrc ! test_identity_py name=id ! fakesink")
35 assert p.get_by_name("id").transformed == False
36 p.set_state(Gst.State.PLAYING)
37 p.get_state(Gst.CLOCK_TIME_NONE)
38 p.set_state(Gst.State.NULL)
39 assert p.get_by_name("id").transformed == True
40
41if __name__ == "__main__":
42 unittest.main()

Callers

nothing calls this directly

Calls 1

get_stateMethod · 0.45

Tested by

no test coverage detected