blob: 2a18eec71c7e3b42bf90c4821fb44e9a3d20bf51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# -*- Mode: Python -*-
import unittest
import gobject
import 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)
|