'A function scheduled with L{IReactorThreads.callFromThread} invoked
from another thread is run in the reactor thread.'

def test_callFromThread(self):

    reactor = self.buildReactor()
    result = []
    def threadCall():
        result.append(threading.currentThread())
        reactor.stop()
    reactor.callLater(0, reactor.callInThread, reactor.callFromThread, threadCall)
    self.runReactor(reactor, 5)
    self.assertEqual(result, [threading.currentThread()])
