'Ensure that callFromThread from inside a callFromThread
callback doesn\'t sit in an infinite loop and lets other
things happen too.'

def testCallFromThreadStops(self):

    self.stopped = False
    d = defer.Deferred()
    reactor.callFromThread(self._callFromThreadCallback, d)
    return d
