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

Method testNotInitialized

testsuite/test_gst.py:41–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39
40class TestNotInitialized(TestCase):
41 def testNotInitialized(self):
42 if sys.version_info >= (3, 0):
43 assert_type = Gst.NotInitialized
44 else:
45 assert_type = TypeError
46
47 with self.assertRaises(assert_type):
48 Gst.Caps.from_string("audio/x-raw")
49
50 with self.assertRaises(assert_type):
51 Gst.Structure.from_string("audio/x-raw")
52
53 with self.assertRaises(assert_type):
54 Gst.ElementFactory.make("identity", None)
55
56 def testNotDeinitialized(self):
57 Gst.init(None)

Callers

nothing calls this directly

Calls 1

makeMethod · 0.80

Tested by

no test coverage detected