'The reactor registers itself as the I/O thread when it runs so that
L{twisted.python.threadable.isInIOThread} returns C{False} if it is
called in a different thread than the reactor is running in.'

def test_isNotInIOThread(self):

    results = []
    reactor = self.buildReactor()
    def check():
        results.append(isInIOThread())
        reactor.callFromThread(reactor.stop)
    reactor.callInThread(check)
    self.runReactor(reactor)
    self.assertEqual([False], results)
