'L{threadable.isInIOThread} returns C{True} if and only if it is called
in the same thread as L{threadable.registerAsIOThread}.'

def test_isInIOThread(self):

    threadable.registerAsIOThread()
    foreignResult = []
    t = threading.Thread(target=(lambda : foreignResult.append(threadable.isInIOThread())))
    t.start()
    t.join()
    self.assertFalse(foreignResult[0], 'Non-IO    thread    reported    as    IO    thread')
    self.assertTrue(threadable.isInIOThread(), 'IO    thread    reported    as    not    IO    thread')
