(self)
| 39 | |
| 40 | class 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) |