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

import unittest

from common import gobject, testhelper

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