'Using L{IReactorWin32Events.addEvent} does not change which thread is
reported as the I/O thread.'

def test_ioThreadDoesNotChange(self):

    results = []
    def check(ignored):
        results.append(isInIOThread())
        reactor.stop()
    reactor = self.buildReactor()
    event = win32event.CreateEvent(None, False, False, None)
    finished = Deferred()
    listener = Listener(finished)
    finished.addCallback(check)
    reactor.addEvent(event, listener, 'occurred')
    reactor.callWhenRunning(win32event.SetEvent, event)
    self.runReactor(reactor)
    self.assertTrue(listener.success)
    self.assertEqual([True], results)
