gstreamer/tests/python/python-full.py
Akkariin Meiko 27c4ec74a1 Update
2022-03-12 03:16:09 +08:00

23 lines
484 B
Python
Executable File

import sys
from pathlib import Path
sys.path.append(str(Path(__file__).parent / "../../subprojects/gst-python/testsuite"))
import overrides_hack
overrides_hack
from common import TestCase, unittest
from gi.repository import Gst
class TestBin(TestCase):
def test(self):
Gst.init(None)
self.assertEqual(Gst.ElementFactory.make("bin", None).sinkpads, [])
self.assertEqual(float(Gst.Fraction(1, 2)), 0.5)
if __name__ == "__main__":
unittest.main()