summaryrefslogtreecommitdiff
path: root/tests/test_unknown.py
blob: d65bb8949df8bd4465edc059b77414472f92e1d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

import unittest

from common import gobject, testhelper

TestInterface = gobject.GType.from_name('TestInterface')


class TestUnknown(unittest.TestCase):
    def testFoo(self):
        obj = testhelper.get_unknown()
        TestUnknownGType = gobject.GType.from_name('TestUnknown')
        TestUnknown = gobject.new(TestUnknownGType).__class__
        assert isinstance(obj, testhelper.Interface)
        assert isinstance(obj, TestUnknown)