summaryrefslogtreecommitdiff
path: root/tests/python/python-full.py
blob: 93f8d3023cf574f133db333e166eee28a823041d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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()