'A
L{reactor.callLater<twisted.internet.interfaces.IReactorTime.callLater>}
call scheduled from a C{gobject.timeout_add}
call is run on time.'

def test_timeout_add(self):

    import gobject
    reactor = self.buildReactor()
    result = []
    def gschedule():
        reactor.callLater(0, callback)
        return 0
    def callback():
        result.append(True)
        reactor.stop()
    reactor.callWhenRunning(gobject.timeout_add, 10, gschedule)
    self.runReactor(reactor, 5)
    self.assertEqual(result, [True])
