9 class TestThread(unittest.TestCase):
11 self.main = glib.MainLoop()
13 def from_thread_cb(self, test, enum):
14 assert test == self.obj
16 assert type(enum) != int
19 self.obj = testhelper.get_test_thread()
20 self.obj.connect('from-thread', self.from_thread_cb)
21 self.obj.emit('emit-signal')
23 def testExtensionModule(self):
24 glib.idle_add(self.idle_cb)
25 glib.timeout_add(50, self.timeout_cb)